Tracking: Limit the range of valid toolchain names, take caution in `rust-toolchain.toml`
Open
@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
As discussed in https://github.com/rust-lang/rustup/issues/4053#issuecomment-2421879443, there are basically two issues to address:
Improve current error messages and treat toolchain names coming fromDone.rust-toolchain.tomlas untrusted.- Come up with more restrictive rules in respect to legal toolchain names.
- If the rules allow the prevention of phishing, lift the restriction on displaying toolchain names from
rust-toolchain.tomlif they are legal.
- If the rules allow the prevention of phishing, lift the restriction on displaying toolchain names from
Tasks
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.