rust-lang / rust-lang/rust-analyzer
Add UI button to switch `rust-analyzer.cargo.target` in VSCode
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
Currently, changing the rust-analyzer.cargo.target requires manually editing .vscode/settings.json. This is cumbersome, especially when frequently switching between different targets (e.g., x86_64-unknown-linux-gnu, wasm32-unknown-unknown).
For example, changing the target currently involves editing your settings like this:
{
"rust-analyzer.cargo.target": "aarch64-linux-android"
}
It would be very convenient to have a dedicated UI button or dropdown in VSCode to switch the target quickly, similar to how other settings like Rust toolchain can be selected.
This would improve workflow efficiency and reduce manual errors when changing targets.
Thank you for considering this feature!
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.
Research direction
Start by reviewing the .vscode/settings.json example and the existing Rust toolchain selector referenced in the issue. Determine where the VSCode extension exposes that selector, then add an equivalent UI control for rust-analyzer.cargo.target and verify that switching targets updates the setting without manual editing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, vscode
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100