# 使用 Homebrew, apk, Nix, pacman, MacPorts 安装 cargo-show-asm

查看 cargo-show-asm 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

- MacPorts (94%):

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

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:cargo-show-asm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cargo-show-asm>
- **版本:** 0.2.62
- **来源摘要:** Show assembly, LLVM-IR, MIR, and WASM generated for Rust code
- **主页:** <https://github.com/pacak/cargo-show-asm>
- **仓库:** <https://github.com/pacak/cargo-show-asm>
- **上游文档:** <https://github.com/pacak/cargo-show-asm#readme>
- **许可证:** MIT OR Apache-2.0
- **源码归档:** <https://github.com/pacak/cargo-show-asm/archive/refs/tags/0.2.62.tar.gz>
- **最后更新:** 2026-06-26T21:26:31Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- cargo-asm (cli)
- cargo-asm (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 0.2.62
- 管理器更新时间: 2026-06-26
- 本地数据: OK
- 上游仓库: https://github.com/pacak/cargo-show-asm
- 检测到的最新版本: 0.2.62 (当前)
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

没有找到 cargo-show-asm 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **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

## 其他软件包管理器记录

- 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


## 相关链接

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


## 来源

- 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
