rust-lang / rust-lang/rust-analyzer
[feat] show current function assembly code
Open
Nobody has claimed this yet.
A-vscode
C-feature
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
feat
show current function assembly code
description
https://github.com/pacak/cargo-show-asm
Integrate cargo-show-asm into rust-analyzer.
#[inline(never)]
pub fn add42(x: u8) -> u8 {
let mut a: u8 = x;
a += 21u8;
a += 21u8;
a
}
$ cargo asm --simplify --lib -p cargo_show_asm_example cargo_show_asm_example::add42 2>/dev/null
cargo_show_asm_example::add42:
lea eax, [rdi + 42]
ret
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 issue's cargo-show-asm reference and the shown cargo asm --simplify --lib invocation to understand the requested output. Identify the rust-analyzer integration entry point and define how the current function's assembly should be displayed; done means rust-analyzer can show that assembly for the selected function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100