# Install cargo-llvm-cov with Homebrew, Nix, pacman

Cargo subcommand to easily use LLVM source-based code coverage. Version 0.8.7 via Homebrew; verified 2026-05-13.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:cargo-llvm-cov
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cargo-llvm-cov>
- **Version:** 0.8.7
- **Source summary:** Cargo subcommand to easily use LLVM source-based code coverage
- **Homepage:** <https://github.com/taiki-e/cargo-llvm-cov>
- **Repository:** <https://github.com/taiki-e/cargo-llvm-cov>
- **Upstream docs:** <https://github.com/taiki-e/cargo-llvm-cov#readme>
- **License:** Apache-2.0 OR MIT
- **Source archive:** <https://static.crates.io/crates/cargo-llvm-cov/cargo-llvm-cov-0.8.7.crate>
- **Last updated:** 2026-05-13T03:04:54Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cargo-llvm-cov (cli)
- cargo-llvm-cov (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-08
- Package-manager version: 0.8.7
- Package-manager updated: 2026-05-13
- Local data: ok
- Upstream repository: https://github.com/taiki-e/cargo-llvm-cov
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

No matching local secret-handling manifest was found for cargo-llvm-cov. 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-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

## Other Package-Manager Records

- 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


## 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-nextest](https://www.automicvault.com/pkg/brew/cargo-nextest/) - Shares av.db curated category or tags: cargo, ci, cli, developer-tools, rust.
- [cargo-binutils](https://www.automicvault.com/pkg/brew/cargo-binutils/) - Shares av.db curated category or tags: cargo, cli, developer-tools, llvm, rust.
- [cargo-insta](https://www.automicvault.com/pkg/brew/cargo-insta/) - Shares av.db curated category or tags: cargo, cli, developer-tools, rust, testing.
- [cargo-llvm-lines](https://www.automicvault.com/pkg/brew/cargo-llvm-lines/) - Shares av.db curated category or tags: cargo, cli, developer-tools, llvm, rust.
- [cargo-auditable](https://www.automicvault.com/pkg/brew/cargo-auditable/) - Shares av.db curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-binstall](https://www.automicvault.com/pkg/brew/cargo-binstall/) - Shares av.db curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-bloat](https://www.automicvault.com/pkg/brew/cargo-bloat/) - Shares av.db curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-bundle](https://www.automicvault.com/pkg/brew/cargo-bundle/) - Shares av.db curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-clone](https://www.automicvault.com/pkg/brew/cargo-clone/) - Both packages touch the same language runtime or ecosystem. Shared terms: cargo, cli, code, developer, developer-tools.
- [cargo-llvm-cov](https://www.automicvault.com/pkg/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/automic-vault/db/blob/main/combined/cargo-llvm-cov.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- 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
