# 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. Also installable with nix: nix profile install nixpkgs#cargo-llvm-cov.

## 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
- **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>
- **Last updated:** 2026-05-13T03:04:54Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cargo-llvm-cov (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.8.7
## 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.


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

- [cargo-llvm-cov](https://pkg.so/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/mxcl/pkgdb/blob/main/combined/cargo-llvm-cov.yml)


## Sources

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