Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3790047rdb; Sun, 10 Dec 2023 22:48:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYXJVUNuRbw3RrkU8FNVKOigqQr9yiAzgRexQuuhqQD61pfzwdmvfbJty17n4vIl7UStbB X-Received: by 2002:a05:6359:640f:b0:170:17eb:9c46 with SMTP id sh15-20020a056359640f00b0017017eb9c46mr3912729rwb.39.1702277282739; Sun, 10 Dec 2023 22:48:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702277282; cv=none; d=google.com; s=arc-20160816; b=TbTEyrCJfLOf35SKGRsTzpKn8e9JvYx8JmZJgdAEbr5bsnHYJK3iHprq6NVBQWDqMd AQgr0XORg33KeXlkfIhca+r8VUBjn0eGbdNenB5vf5yQ03pxCGv96WI2D77ba5t06J33 DEq7R0eNjmc+PkLic9P/LzhAa5OJQcCcAkn/hVqyd/A8Ko7S96lJnKSe07SHrOE76tpi nR9fE6nvZv+gOoJ+A/XF3bOrIPq42cfVK8NincRp6MyEqwBBxm+LrgAwv5cV/sYf1Ukq 3v8+LdXQeW5UD6iWRUKPvzri3zxVOVXzNZK5MBHX/Yp9ynIZjLUd+UzJxFpVD01zZYSm RjXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a48U/31wlYhKh2YcSR/tePNphggIU3CwJSH0jG+cw8E=; fh=rInyB7I2S9UPCM9y8TmTcUHmJx4s7ZiQ9er0qAlVOl4=; b=sZLNV6ihAG0nC5vOJF8YgHpGyoRTDsPMe2UDMBUSwQx+r2TGQfxVPpwPc3DiDN6kCR KBxAvcm7MzL2EaF4xmn7vtNNfcvm13FM5fQukHADGzOquF+lpOSrMYhDNa/o0101wzwv xyD1hJRpbt+UITx/T47M4gpr10BFFXKLgTjtdc/A5/oXJjkswKI30Sgr5PhdUgWpEC7R C5w4gnO/8eiWmgYXAMnfyJM8KQUUCbFDlVk3iZaKHqzYLrUhSB2dqM3nkVHTh+yq3EHm CGziXPxUWQAJGMdhNKjLc6O+h5iT42UAgSbSNEfUX2RZX4rj3PswlV0CDI/hrc1phmf/ bkiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CxVHFMRl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d20-20020a170902729400b001cc282684c6si5527251pll.278.2023.12.10.22.48.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 22:48:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CxVHFMRl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id ECFBF8068FE2; Sun, 10 Dec 2023 22:47:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233104AbjLKGrl (ORCPT + 99 others); Mon, 11 Dec 2023 01:47:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjLKGrk (ORCPT ); Mon, 11 Dec 2023 01:47:40 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0414BD8 for ; Sun, 10 Dec 2023 22:47:46 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-5c1f8b0c149so2102304a12.3 for ; Sun, 10 Dec 2023 22:47:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702277265; x=1702882065; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=a48U/31wlYhKh2YcSR/tePNphggIU3CwJSH0jG+cw8E=; b=CxVHFMRlgB3caYI7f54djRbSS7nlsRY6EH1bJoZAmmP8x+HFbdwt4X4taiBgdo4W+S iDrPms4bPKIRQZbgu6KMNkbeu9iysadMyAkMKSKAwtWZjoCdAxuZMHKvJ02cDpexvipD KLf0klhrHjNTZLoXKRMDFDR9iC2geVo9PxNw4+G+/XA4kLnhBnoMv79OaM6ms+yEesXU 1Q7hXLprADmXs4IrKGCwIqCPCMYP2lYya08Z/yIfv030QXKnM8bDQ8WxI2xZxBUM48nC 5TGJfuvZdLNifk5Yl8s41zm2Ef03E5ID+l6U9kY71+v/ihiUJ4aCPNu7/1IkF/MBCG0F fx7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702277265; x=1702882065; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=a48U/31wlYhKh2YcSR/tePNphggIU3CwJSH0jG+cw8E=; b=PEeUcNtE/rsk7q8zLDnX3ou6wrzd77bwvL/Si8/VpjjT+H25ZX6pGt+M0lGxIbjgvj 3BtYehrnn9TRC53ZU41VNuXqiG2XopkBxuiXPaYJtoqzQNDm/MbKnaClprK/YXvMX/Uz z7QvLF0jRIcnDk1NMsI3EjTVgU24D6aRPZwcMQ4+P7N1t+f0TjIT4y4OIzYm9SUHvL9f LKx01R0XOB9aeCci/CMV2HyReSSp0/23p4nLb7Z5+bfGQk40m2HbxcTalXqed17e9e59 yejiSiYcGOl2XWQwHZe9A9pI49YZ9RTx8iWGmr/ASxa7PhMyLyc2QCct0pfwSFXfEjXT VNtA== X-Gm-Message-State: AOJu0YwB4aIeFsBy7bxD3CnZz1xIEvyeJYIGcOnU1f8K/H8fQ9S5XM29 3DI/0ZxpZZoDdOIfzOrtNoEDfw== X-Received: by 2002:a05:6a20:431c:b0:18f:97c:ba03 with SMTP id h28-20020a056a20431c00b0018f097cba03mr1769416pzk.93.1702277265442; Sun, 10 Dec 2023 22:47:45 -0800 (PST) Received: from localhost ([122.172.82.6]) by smtp.gmail.com with ESMTPSA id pt8-20020a17090b3d0800b002839679c23dsm6161953pjb.13.2023.12.10.22.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 22:47:44 -0800 (PST) Date: Mon, 11 Dec 2023 12:17:42 +0530 From: Viresh Kumar To: Miguel Ojeda , Benno Lossin Cc: Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?B?QmrDtnJu?= Roy Baron , Andreas Hindborg , Alice Ryhl , Jonathan Corbet , Vincent Guittot , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: rust: Clarify that 'rustup override' applies to build directory Message-ID: <20231211064742.63l4cmvxe4uso5us@vireshk-i7> References: <4738ad1c-eb54-4ad6-98c8-3852de3e8fc3@proton.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4738ad1c-eb54-4ad6-98c8-3852de3e8fc3@proton.me> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 10 Dec 2023 22:48:00 -0800 (PST) On 08-12-23, 18:04, Benno Lossin wrote: > Shouldn't this be "Note that the override only applies to the current > working directory (and its sub-directories)."? > I think it would also be useful to continue with this: "But in order > to build the kernel, this override must affect the build directory.". > > And then you could also mention that in the default location for the > build directory is in the repository. Based on feedback from Miguel and Benno, how about this instead ? diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst index f382914f4191..dee787f92d26 100644 --- a/Documentation/rust/quick-start.rst +++ b/Documentation/rust/quick-start.rst @@ -33,14 +33,17 @@ A particular version of the Rust compiler is required. Newer versions may or may not work because, for the moment, the kernel depends on some unstable Rust features. -If ``rustup`` is being used, enter the checked out source code directory -and run:: +If ``rustup`` is being used, enter the kernel build directory and run:: rustup override set $(scripts/min-tool-version.sh rustc) This will configure your working directory to use the correct version of -``rustc`` without affecting your default toolchain. If you are not using -``rustup``, fetch a standalone installer from: +``rustc`` without affecting your default toolchain. + +Note that the override applies to the current working directory (and its +sub-directories). + +If you are not using ``rustup``, fetch a standalone installer from: https://forge.rust-lang.org/infra/other-installation-methods.html#standalone -- viresh