rust-lang / rust-lang/rustup

Add dynamic completions for target names in `rustup target` sub-command

Open
#5,032 5 comments 1 reaction 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.