Skip to content

rust-toolchain should allow setting the equivalent of --profile minimal #2579

Closed
@Arnavion

Description

@Arnavion

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions