On Tue, Jul 18, 2023 at 7:50 AM Trevor Gross <tmgross@xxxxxxxxx> wrote: > > 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 <tmgross@xxxxxxxxx> 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 be > +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