Add dynamic completions for target names in `rustup target` sub-command
Open
@FranciscoTGouveia is already working on this.
Since Aug 24, 2026.
enhancement
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
Currently, rustup target add does not support completions for target names.
We should use clap's dynamic completions for this, possibly extending them to other subcommands (see #2268).
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.