# Install cargo-show-asm with Homebrew, apk, Nix, pacman, MacPorts

Show assembly, LLVM-IR, MIR, and WASM generated for Rust code. Version 0.2.62 via Homebrew; verified 2026-06-26. Also installable with nix: nix profile install nixpkgs#cargo-show-asm.

## Install

```sh
sudo av install brew:cargo-show-asm
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cargo-show-asm
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cargo-asm
```

  Evidence: MacPorts ports tree: devel/cargo-asm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add cargo-show-asm
```

  Evidence: Alpine Linux edge package indexes: cargo-show-asm from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-show-asm
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ca/cargo-show-asm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cargo-show-asm
```

  Evidence: Arch Linux sync databases: cargo-show-asm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:cargo-show-asm
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cargo-show-asm>
- **Version:** 0.2.62
- **Source summary:** Show assembly, LLVM-IR, MIR, and WASM generated for Rust code
- **Homepage:** <https://github.com/pacak/cargo-show-asm>
- **Repository:** <https://github.com/pacak/cargo-show-asm>
- **Upstream docs:** <https://github.com/pacak/cargo-show-asm#readme>
- **License:** MIT OR Apache-2.0
- **Source archive:** <https://github.com/pacak/cargo-show-asm/archive/refs/tags/0.2.62.tar.gz>
- **Last updated:** 2026-06-26T21:26:31Z
- **Generated:** 2026-07-25T07:20:51+00:00

## Executables

- cargo-asm (cli)
- cargo-asm (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-25
- Package-manager version: 0.2.62
- Package-manager updated: 2026-06-26
- Local data: ok
- Upstream repository: https://github.com/pacak/cargo-show-asm
- Upstream latest detected: 0.2.62 (current)
## Project history and usage

cargo-show-asm is a Cargo subcommand, invoked as cargo asm, for displaying generated assembly, LLVM IR, MIR, WebAssembly, and llvm-mca analysis for Rust code.

### Project history

The GitHub repository was created in March 2022 and the crate was first published to crates.io in April 2022. Its README documents support for Linux and macOS, limited Windows support, stable and nightly Rust, multiple CPU architectures, and cross-compilation.

### Adoption history

The crate is distributed through crates.io and batch package facts list Homebrew, MacPorts, Alpine, Nix, and Arch packaging. crates.io categorizes it as a Cargo plugin and debugging tool.

### How it is used

Users install cargo-show-asm and run cargo asm, narrowing by package, artifact, function name, output format, CPU target, profile, or source scope. The README also documents JSON output, call-graph filtering, shell completions, and color features.

### Why package nerds care

It gives Rust developers a convenient Cargo-native view into compiler output, useful for performance work, codegen inspection, and understanding exactly what a dependency or crate compiles down to.

### Timeline

- 2022: Repository created and first crates.io release published.
- 2026: GitHub repository remained active and crates.io reported v0.2.62 as latest.
- 2026: README documented assembly, LLVM IR, MIR, WASM, and llvm-mca output modes.

### Related projects

- The tool delegates to rustc/Cargo build outputs and supports llvm-mca analysis.
- The executable name in package facts is cargo-asm, matching the README's cargo asm usage.

### Sources

- <https://api.github.com/repos/pacak/cargo-show-asm>
- <https://github.com/pacak/cargo-show-asm>
- <https://github.com/pacak/cargo-show-asm#readme>
- <https://crates.io/api/v1/crates/cargo-show-asm>
- <https://formulae.brew.sh/api/formula/cargo-show-asm.json>


## Security Notes

No matching local secret-handling manifest was found for cargo-show-asm. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-show-asm
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - cargo-show-asm: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-show-asm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cargo-show-asm - 0.2.60-r0: normalized package name match | Alpine Linux edge package indexes: cargo-show-asm from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A cargo subcommand that displays the generated assembly of Rust source code | https://github.com/pacak/cargo-show-asm
- apk - cargo-show-asm-doc - 0.2.60-r0: normalized package name match | Alpine Linux edge package indexes: cargo-show-asm-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A cargo subcommand that displays the generated assembly of Rust source code (documentation) | https://github.com/pacak/cargo-show-asm
- pacman - cargo-show-asm - 0.2.60-1: normalized package name match | Arch Linux sync databases: cargo-show-asm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Cargo subcommand to display ASM, LLVM-IR and MIR for Rust source code | https://github.com/pacak/cargo-show-asm
- MacPorts - cargo-asm: installed executable or alias match | MacPorts ports tree: devel/cargo-asm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- pacman - cargo-asm - 0.1.16-3: installed executable or alias match | Arch Linux sync databases: cargo-asm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Cargo subcommand showing the assembly or llvm-ir generated for Rust code | https://github.com/gnzlbg/cargo-asm


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-shear](https://www.automicvault.com/pkg/brew/cargo-shear/) - Shares av.db curated category or tags: cargo-plugin, cli, developer-tools, rust.
- [cargo-sort](https://www.automicvault.com/pkg/brew/cargo-sort/) - Shares av.db curated category or tags: cargo-plugin, cli, developer-tools, rust.
- [cargo-binutils](https://www.automicvault.com/pkg/brew/cargo-binutils/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [cargo-bloat](https://www.automicvault.com/pkg/brew/cargo-bloat/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [cargo-bundle](https://www.automicvault.com/pkg/brew/cargo-bundle/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [asm-lsp](https://www.automicvault.com/pkg/brew/asm-lsp/) - Shares av.db curated category or tags: assembly, cli, developer-tools, rust.
- [cargo-about](https://www.automicvault.com/pkg/brew/cargo-about/) - Shares av.db curated category or tags: cargo-plugin, cli, developer-tools, rust.
- [cargo-all-features](https://www.automicvault.com/pkg/brew/cargo-all-features/) - Shares av.db curated category or tags: cargo-plugin, cli, developer-tools, rust.

## Combined YAML source

View the package source record on GitHub. [combined/cargo-show-asm.yml](https://github.com/automic-vault/db/blob/main/combined/cargo-show-asm.yml)


## Sources

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
