# 使用 Homebrew, Nix 安装 cargo-llvm-lines

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

## 安装

```sh
sudo av install brew:cargo-llvm-lines
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cargo-llvm-lines
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-llvm-lines
```

  证据: nixpkgs package indexes: pkgs/by-name/ca/cargo-llvm-lines/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cargo-llvm-lines
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cargo-llvm-lines>
- **版本:** 0.4.46
- **来源摘要:** Count lines of LLVM IR per generic function
- **主页:** <https://github.com/dtolnay/cargo-llvm-lines>
- **仓库:** <https://github.com/dtolnay/cargo-llvm-lines>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://github.com/dtolnay/cargo-llvm-lines/archive/refs/tags/0.4.46.tar.gz>
- **最后更新:** 2026-05-29T17:20:08+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cargo-llvm-lines (cli)
- cargo-llvm-lines (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.4.46
- 管理器更新时间: 2026-05-29
- 本地数据: OK
- 上游仓库: https://github.com/dtolnay/cargo-llvm-lines
- 检测到的最新版本: 0.4.46 (当前)
## 项目历史与用法

cargo-llvm-lines measures the number and size of LLVM IR instantiations for generic functions in a Rust program. Its README frames the output as a way to find code with the highest leverage for improving compilation metrics.

### 项目历史

The crate first appeared on crates.io in November 2017 as version 0.1.0. The README credits the idea to eddyb's suggestion for counting monomorphized functions while debugging compiler memory use, executable size, and compile time.

### 采用历史

The package is available through Homebrew and Nix according to the input facts, and crates.io reported 134,082 downloads when checked on 2026-06-30. Its audience is narrower than test runners or build tools, but it is well known among Rust developers investigating monomorphization bloat.

### 使用方式

Users run cargo llvm-lines to see total LLVM IR lines, number of copies, and function names, optionally using -p to inspect a package in a multi-crate project or release/LTO settings for a broader view.

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

It is a package-nerd tool because it exposes otherwise hidden codegen costs in dependency and generic-heavy Rust crates, helping maintainers decide where small API or generic changes can reduce compile time and binary size.

### 时间线

- 2017: First crates.io release 0.1.0.
- 2026: Crates.io latest version 0.4.46 and Homebrew stable version 0.4.46.

### Related projects

- Related tooling includes Cargo, rustc/LLVM IR output, and compiler performance analysis workflows.

### 来源

- <https://api.github.com/repos/dtolnay/cargo-llvm-lines>
- <https://github.com/dtolnay/cargo-llvm-lines>
- <https://github.com/dtolnay/cargo-llvm-lines#readme>
- <https://crates.io/api/v1/crates/cargo-llvm-lines>
- <https://formulae.brew.sh/api/formula/cargo-llvm-lines.json>


## 安全说明

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


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-llvm-lines
- **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-llvm-lines: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-llvm-lines/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-llvm-cov](https://pkg.so/zh-hans/brew/cargo-llvm-cov/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, llvm, rust.
- [cargo-binutils](https://pkg.so/zh-hans/brew/cargo-binutils/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, llvm, rust.
- [cargo-public-api](https://pkg.so/zh-hans/brew/cargo-public-api/) - Shares pkgdb curated category or tags: cargo, cli, code-analysis, developer-tools, rust.
- [cargo-binstall](https://pkg.so/zh-hans/brew/cargo-binstall/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-c](https://pkg.so/zh-hans/brew/cargo-c/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-nextest](https://pkg.so/zh-hans/brew/cargo-nextest/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-edit](https://pkg.so/zh-hans/brew/cargo-edit/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-update](https://pkg.so/zh-hans/brew/cargo-update/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.

## Combined YAML source

View the package source record on GitHub. [combined/cargo-llvm-lines.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-llvm-lines.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
