Add a facility to rustup to show how its variables are currently set.
@rami3l is already working on this.
Since Aug 3, 2026.
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
Problem you are trying to solve
Currently there is (or I can find) no way to see how the "variables" in rustup are set. The rustup set command allows you to set them but it has no --list variant neither does rustup show have a --variables variant. To be slightly more explicit, rustup set help displays:
Alter rustup settings
Usage: rustup[EXE] set <COMMAND>
Commands:
default-host The triple used to identify toolchains when not specified
profile The default components installed with a toolchain
auto-self-update The rustup auto self update mode
auto-install The auto toolchain install mode
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
But I cannot display how default-host, profile, auto-self-update or auto-install are configured.
Solution you'd like
I have no preference as to whether this is a new variant of show or set or both or even some other solution. If we take Unix shell command set as the exemplar, then rustup set would show this rather than assuming "help" as it does now, but since that is a breaking change it may well not be the preferred solution.
Notes
I have discussed this on zulip and been advised to raise an issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.