# 使用 Homebrew, Nix, pacman 安装 cargo-llvm-cov

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cargo-llvm-cov
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S cargo-llvm-cov
```

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

## 软件包事实

- **软件包键:** brew:cargo-llvm-cov
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cargo-llvm-cov>
- **版本:** 0.8.7
- **来源摘要:** Cargo subcommand to easily use LLVM source-based code coverage
- **主页:** <https://github.com/taiki-e/cargo-llvm-cov>
- **仓库:** <https://github.com/taiki-e/cargo-llvm-cov>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://static.crates.io/crates/cargo-llvm-cov/cargo-llvm-cov-0.8.7.crate>
- **最后更新:** 2026-05-13T03:04:54Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.8.7
- 管理器更新时间: 2026-05-13
- 本地数据: OK
- 上游仓库: https://github.com/taiki-e/cargo-llvm-cov
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

cargo-llvm-cov is a Cargo subcommand for LLVM source-based coverage in Rust projects. Its README says it wraps rustc -C instrument-coverage and supports cargo test, cargo run, and cargo nextest flows.

### 项目历史

The crate was first published on crates.io in January 2021 as version 0.0.0. Its official README emphasizes precise line, region, and optional branch coverage while avoiding extra layers between rustc, cargo, and llvm-tools.

### 采用历史

The tool became part of common Rust CI coverage workflows because it can emit text, HTML, JSON, lcov, Cobertura, and Codecov-compatible reports. It is packaged by Homebrew, Nix, and Arch according to the input package-manager facts; crates.io reported 6,323,980 downloads when checked on 2026-06-30.

### 使用方式

Typical usage is cargo llvm-cov for test coverage, cargo llvm-cov --html or --open for local reports, cargo llvm-cov --lcov for CI uploads, and cargo llvm-cov nextest when running tests through cargo-nextest.

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

It matters to Rust package maintainers because it standardizes coverage collection around the compiler's LLVM instrumentation rather than a separate test harness, making coverage easier to reproduce locally and in package CI.

### 时间线

- 2021: First crates.io release 0.0.0.
- 2026: Crates.io latest version 0.8.7 and Homebrew stable version 0.8.7.

### Related projects

- Related projects include rustc's -C instrument-coverage support, llvm-tools, cargo-nextest, Codecov, and Cobertura-compatible coverage consumers.

### 来源

- <https://api.github.com/repos/taiki-e/cargo-llvm-cov>
- <https://github.com/taiki-e/cargo-llvm-cov>
- <https://github.com/taiki-e/cargo-llvm-cov/tree/main/docs>
- <https://github.com/taiki-e/cargo-llvm-cov#readme>
- <https://crates.io/api/v1/crates/cargo-llvm-cov>
- <https://formulae.brew.sh/api/formula/cargo-llvm-cov.json>


## 安全说明

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


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-llvm-cov
- **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-cov: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-llvm-cov/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-llvm-cov - 0.8.7-1: normalized package name match | Arch Linux sync databases: cargo-llvm-cov from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Cargo subcommand to easily use LLVM source-based code coverage (-Z instrument-coverage). | https://github.com/taiki-e/cargo-llvm-cov


## 相关链接

- [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-nextest](https://pkg.so/zh-hans/brew/cargo-nextest/) - Shares pkgdb curated category or tags: cargo, ci, cli, developer-tools, rust.
- [cargo-hack](https://pkg.so/zh-hans/brew/cargo-hack/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust, testing.
- [cargo-llvm-lines](https://pkg.so/zh-hans/brew/cargo-llvm-lines/) - 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-fuzz](https://pkg.so/zh-hans/brew/cargo-fuzz/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust, testing.
- [cargo-insta](https://pkg.so/zh-hans/brew/cargo-insta/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust, testing.
- [kcov](https://pkg.so/zh-hans/brew/kcov/) - Shares pkgdb curated category or tags: cli, code-coverage, developer-tools, testing.
- [lychee](https://pkg.so/zh-hans/brew/lychee/) - Shares pkgdb curated category or tags: ci, cli, developer-tools, rust.
- [cargo-clone](https://pkg.so/zh-hans/brew/cargo-clone/) - Both packages touch the same language runtime or ecosystem. Shared terms: cargo, cli, code, developer, developer-tools.
- [cargo-llvm-cov](https://pkg.so/zh-hans/cargo/cargo-llvm-cov/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/cargo-llvm-cov.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-llvm-cov.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
