Describe the problem you are trying to solve
For things like CI that can make do with the minimal profile but also need additional components, I usually do something like this to install the desired toolchain:
rust_toolchain="$(cat rust-toolchain)"
rustup toolchain install "$rust_toolchain" --profile minimal --component clippy,rustfmt
rustup default "$rust_toolchain"
The new TOML format allows this to be skipped since the first invocation of rustc / cargo will auto-install the toolchain with the required components, except that it does so using the default profile and thus also installs rust-docs.
Describe the solution you'd like
It would be nice if, when rustup installs a new toolchain as a result of a discovered TOML rust-toolchain file, it either defaults to using the minimal profile if components is specified (too late now perhaps due to backward compatibility), or the TOML has a profile field I can set to "minimal", or some other way.
Describe the problem you are trying to solve
For things like CI that can make do with the minimal profile but also need additional components, I usually do something like this to install the desired toolchain:
The new TOML format allows this to be skipped since the first invocation of
rustc/cargowill auto-install the toolchain with the required components, except that it does so using the default profile and thus also installsrust-docs.Describe the solution you'd like
It would be nice if, when rustup installs a new toolchain as a result of a discovered TOML rust-toolchain file, it either defaults to using the minimal profile if
componentsis specified (too late now perhaps due to backward compatibility), or the TOML has aprofilefield I can set to"minimal", or some other way.