rust-lang / rust-lang/rust-analyzer
Feature request, code lens run in release mode
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
My runner is generally dfu a binary to a device so Id like to be in release mode. I suppose I could just override the debug release mode, but it feels meh.
I searched config a bit and thought I had to ideas, but they didnt seem to work
rust-analyzer.cargoRunner takes an extension name, not a local exe so I cant sneak cargo run --release there
I realized I could sneak an environvariable with runnableEnv but I think its not being injected to cargo, only the result
"rust-analyzer.runnableEnv": {
"PROFILE": "release"
}
Thoughts?
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 tracing how rust-analyzer.cargoRunner launches runnable targets and how rust-analyzer.runnableEnv is passed to Cargo. Confirm where the release profile should be selected, then verify that code-lens runs use release mode without changing the default debug behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100