# gnzlbg/cargo-asm

cargo subcommand showing the assembly or llvm-ir generated for Rust code

Repository: https://github.com/gnzlbg/cargo-asm
Canonical: https://ross.abutalabs.com/products/cargo-asm
Homepage: https://github.com/gnzlbg/cargo-asm
Language: Rust
License: NOASSERTION
License Family: other
Topics: cargo-subcommand
Last push: 2024-02-26T19:01:08+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3123, "days_push": 919, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1294, forks 37 (observed 2026-08-28T04:04:16.277604+00:00)

## What it is
cargo-asm is a cargo subcommand that displays the assembly or LLVM IR generated for Rust source code. It supports querying functions and methods by path, annotating assembly with Rust source, and outputting Intel/AT&T syntax or a JSON AST.

## Use cases
- view the assembly generated for a Rust function
- inspect LLVM IR emitted by rustc for a method
- check how the compiler optimizes a hot function
- compare assembly across Rust nightly and stable
- dump assembly as JSON for further processing
- see Rust source interleaved with generated assembly

## When to choose
- you need to inspect compiler output for performance tuning of Rust code
- you want a quick cargo-integrated way to view asm or LLVM IR for specific functions
- you work across x86, ARM, MIPS, PowerPC, or SPARC targets

## When to avoid
- you need a general-purpose disassembler for binaries rather than compiler output
- you need a debugger or profiler instead of static code inspection
- you need actively developed tooling with frequent updates

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: developer-tools, compiler, cli
- domain: developer-tools, performance, programming-languages
- platform: windows, cli, rust
- tags: cargo-subcommand, assembly, llvm-ir, rust, code-inspection, disassembly, command-line, linux, macos

## Member repositories
- gnzlbg/cargo-asm (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.277604+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:54:04.648623+00:00, confidence not recorded.
  - readme: https://github.com/gnzlbg/cargo-asm (fetched 2026-08-28T04:04:16.277604+00:00, sha f194d65efe2a)
  - homepage: https://github.com/gnzlbg/cargo-asm (fetched 2026-08-29T12:10:49.546744+00:00, sha 578804849515)
  - registry_crates: https://crates.io/api/v1/crates/cargo-asm (fetched 2026-08-29T12:10:49.556295+00:00, sha 88ab2cbea1c3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
