# taiki-e/cargo-llvm-cov

Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).

Repository: https://github.com/taiki-e/cargo-llvm-cov
Canonical: https://ross.abutalabs.com/products/cargo-llvm-cov
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust, cargo, cli, coverage
Last push: 2026-08-21T12:06:20+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 98, longevity 100
- inputs: {"age_days": 2055, "days_push": 12, "days_rel": 17, "gap_med": 13, "n_releases_24m": 24}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1453, forks 95 (observed 2026-08-28T04:04:46.638194+00:00)

## What it is
cargo-llvm-cov is a Cargo subcommand that wraps rustc's -C instrument-coverage to generate precise LLVM source-based code coverage reports for Rust projects. It supports cargo test, cargo run, and cargo nextest, with output formats suitable for CI services like Codecov.

## Use cases
- generate code coverage reports for rust tests
- measure line and branch coverage in a rust crate
- upload rust coverage to codecov in ci
- get coverage for doc tests and proc-macro ui tests
- merge coverage from tests run under different conditions
- exclude files or code from coverage reports

## When to choose
- you need accurate source-based coverage for a rust project
- you want fast coverage without extra instrumentation layers
- you need coverage in github actions, gitlab ci, or codecov
- you use nextest or need doc test coverage

## When to avoid
- you need coverage for non-rust projects
- you rely on tarpaulin-specific features or workflows
- you need branch coverage on stable rust (requires nightly)

## Facets
- artifact type: cli-tool
- maturity: stable
- function: testing, cli, developer-tools
- domain: testing, developer-tools
- platform: rust, cli, cross-platform
- tags: code-coverage, cargo-subcommand, llvm, rust, codecov, command-line

## Member repositories
- taiki-e/cargo-llvm-cov (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:46.638194+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:46.235748+00:00, confidence not recorded.
  - readme: https://github.com/taiki-e/cargo-llvm-cov (fetched 2026-08-28T04:04:46.638194+00:00, sha 5922769c802b)
  - registry_crates: https://crates.io/api/v1/crates/cargo-llvm-cov (fetched 2026-08-29T11:45:00.474707+00:00, sha 49905124455f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
