Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9692793rwp; Thu, 20 Jul 2023 08:25:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEsPlee60wc2l14QzQMiMnlMynyNYSG1e5r2flcuBlWTrVDA34z0/R76TtGE1v2XxeI1TIE X-Received: by 2002:a05:6830:1b62:b0:6b8:807b:b50 with SMTP id d2-20020a0568301b6200b006b8807b0b50mr3316505ote.22.1689866730692; Thu, 20 Jul 2023 08:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689866730; cv=none; d=google.com; s=arc-20160816; b=oH+FgIVZgGlcNZnggQKDYCXJg90VRp1NZF+OpwnLeMgd7vSeVWEB3vxKQApVottE9z bHfrijofSIO7OXLegZeWA45HtYXH1A8gzm1ItpR6AQdjRh4vccYNbikCECdVFdiDEeqK BFMxDzUzwYoVGSszv4v/4ssOspnbLzD0o2cc7WGPqtoOXqnH3jqksjwwFw5twAhR0c33 7QbAtX6C0XjyR8KVQOu82D/pWgBNi8Z9tF8+yoV226sy1afWed4WKQZdpQdUKAyXIVUm tmYieyJI8dEMsojeNBI8zyvEFPZ1fOe7m2dsy1TMB8P3xt7FICiboZYuv3J/XXA7btQ8 /BUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bvMr3T1p15XlXcu1FTpChfqGLr/+qVrwbwtZIWp+fI0=; fh=Alky2oTmMuZe0F6hI6cAgG8chPi5wOOwC4bpBInwroE=; b=t5EeUKxj0PC6H7zVZLUa04ahKCS+n+CuEY9jYFaRdWi3DcleKk44pQR7PNXnUn2NrM 9HlAKFRotiT7Ei3iM7mndD3HZVs23RS6+SxDUq12AjXLZ4hcr3ZpSqmZCUWAyKVUXO4X X6Kgm6AZtUteTzVaxG9pWote1F+ZyO3DVbRni0AAb7cha+03IYiiqKlZZ4SMLLSUmFJ1 FaFNotnWBSTjfXWHzkWy5bJOJpkjm+9rIsKrsxYYnKOmWUndSSoDzq1ECofD8VDd39dN SpsZPUZ+05jO2qcSQ2lEzi0LkJS6ONEVbEx3Iy0hX97T47/MZ6EHNCDPGON7gPeiw3q6 EDBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kO9WQz7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a33-20020a631a21000000b0055bc22d13d7si1011463pga.692.2023.07.20.08.25.18; Thu, 20 Jul 2023 08:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kO9WQz7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232116AbjGTOxL (ORCPT + 99 others); Thu, 20 Jul 2023 10:53:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232430AbjGTOxE (ORCPT ); Thu, 20 Jul 2023 10:53:04 -0400 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90928E60; Thu, 20 Jul 2023 07:53:03 -0700 (PDT) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-579ed2829a8so10627287b3.1; Thu, 20 Jul 2023 07:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689864783; x=1690469583; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bvMr3T1p15XlXcu1FTpChfqGLr/+qVrwbwtZIWp+fI0=; b=kO9WQz7rK0/+lGVQ/yK7d94iSfvTSIIQLoqAX4O+kisIiIZMV60Ouel/kc4srVmbqF 76rOjM3GrcgFOEroazpxRfB2lJ/JIupbg3qnvOM5+7WhZ0Y7MRlB5xQ3cYinYN7miYE9 iXq7/NZ3gYGKmB7Ftd7LT8oRPQP4wlgS5PD6aOcjvVp3Kx0KGh82dH87Y8hpkf1opaNr ymmkdCQp8tVU9WBqir+RsXB+GRWBhpbGN7Nknx97c4gQdNxs/HoI77nwAJzPJCsOY7kV gsgxKEoCt5fq6NnDpY7+nA0KGQ9TvzaIEvj/klJJcc4fdap60SZRd1X865x/Me+PhNOS 9e4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689864783; x=1690469583; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bvMr3T1p15XlXcu1FTpChfqGLr/+qVrwbwtZIWp+fI0=; b=dlENfrS0oL870RGAWdlqS0gQXioUZGnsFKv9auS7+vxEaRLPvLLRm6E/slA1AkS4Ic tIlfgixVl6tw7fhVI58FncILoWYDU6B6eBtfDB6mC5ZgMT2zqy0Jquqgo4hBs3QBJXDn /vFCwt2aSikjzNuYvLm9twcOgHss8z3iBz36T8GXYS5xSddl04PzfgIBbRDP6YfseN3b mlLM0nINleME7quCYyMA6pswTJn/rMPMRD+LKtIDc7Pujj2yRtosqIofz9YqA1WsIa+S GhXmM6rs8+wJo6RkFyORmBn/r8WqE76OKa7JI3Ut8eZG59A6i9tVMUzWy3Eut3laH2BR Kl1Q== X-Gm-Message-State: ABy/qLa374eDUUDNBTwqDQtHqBAG+PEcOtMQAhBj9BKxBp1dfZkEUiyA IllKU9vFd6xiQ+LP1rc3S4S+czEz8dmAUX90IaY= X-Received: by 2002:a81:488b:0:b0:577:60ba:440a with SMTP id v133-20020a81488b000000b0057760ba440amr19093706ywa.50.1689864782754; Thu, 20 Jul 2023 07:53:02 -0700 (PDT) MIME-Version: 1.0 References: <20230718054416.861412-1-tmgross@umich.edu> <20230718054416.861412-2-tmgross@umich.edu> In-Reply-To: <20230718054416.861412-2-tmgross@umich.edu> From: Miguel Ojeda Date: Thu, 20 Jul 2023 16:52:51 +0200 Message-ID: Subject: Re: [PATCH 1/2] docs: rust: update instructions for obtaining 'core' source To: Trevor Gross Cc: ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, benno.lossin@proton.me, corbet@lwn.net, linux-doc@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 18, 2023 at 7:50=E2=80=AFAM Trevor Gross wr= ote: > > The source for Rust's 'core' library is needed to build the kernel with > Rust support. This must be obtained manually when using a non-rustup > install, such as when using 'rustc' from a package manager or from a What does "manually" mean here? I guess "setting it up by hand", but a distribution may provide a package for that (e.g. `rust-1.62-src` in Ubuntu), so it is essentially the same as with `rustup` in that case (i.e. when the distribution provides the means via the package manager). > standalone installer. Currently, the documentation suggests cloning the > 'rust' repository to obtain these sources, but this is quite slow (on > the order of a few minutes). > > This patch changes this documentation to suggest using the source > tarball instead, which includes only needed information (<5M) and is > significantly faster to download. This is more in line with what > 'rustup' does. If I recall correctly, the idea with the clone was to easily change the tag when migrating to another version (assuming the base path does not need to change across versions). But the tarball approach is likely better anyway, especially for the majority of users. > Signed-off-by: Trevor Gross It may be nice to add `Link: https://github.com/Rust-for-Linux/linux/pull/1024`, but I can do that on my side. In addition, commit messages should describe the changes in imperative mood. Many commits do not follow that convention, but it is what the kernel docs say, so we should try to adhere to it if possible. > -Otherwise, if a standalone installer is used, the Rust repository may be= cloned > -into the installation folder of the toolchain:: > +Otherwise, if a standalone installer is used, the Rust source tree may b= e > +downloaded into the toolchain's installation folder:: Is the rewording (i.e. the Saxon genitive change) expected? Not a big deal, of course -- I am mentioning it since, in general, all changes should be mentioned so that that they are expected, e.g. with a quick "and improve the wording while at it". Cheers, Miguel