CheckOps
cargo-llvm-cov
cargo-llvm-cov is a cargo subcommand (Apache-2.0 or MIT) for LLVM source-based code coverage in Rust, supporting cargo test, cargo run and cargo nextest with precise line and region coverage.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
cargo-llvm-cov is a cargo subcommand that makes it easy to use LLVM source-based code coverage, a wrapper around rustc’s -C instrument-coverage. Its README lists the benefits: very precise coverage data (line, region and branch, with branch coverage currently optional and requiring nightly), support for cargo test, cargo run and cargo nextest with a cargo-compatible CLI, support for proc macros including UI tests, optional doc test coverage on nightly, and speed, because it only instruments necessary crates.
Reports can be printed as a summary, opened as HTML (--open), or exported in LCOV, JSON, Cobertura and Codecov formats for CI services. It can merge coverage from different test conditions, measure coverage of C/C++ code linked into Rust, cover external tests and AFL fuzzers, and exclude files. It is maintained by taiki-e, and version 0.9.1 was released on 6 September 2026.
The source code is at taiki-e/cargo-llvm-cov on GitHub under the Apache-2.0 or MIT licence, with about 1,500 stars; the most recent commit was on 1 November 2026.
Features
- Precise coverage: LLVM line and region coverage.
- nextest support:
cargo llvm-cov nextest. - Many formats: HTML, LCOV, JSON, Cobertura and Codecov.
- Advanced scenarios: Merge runs, C/C++ code, external tests and fuzzers.
Pros
- Free to use: Open source under the Apache-2.0 or MIT licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 1 November 2026.
Cons
- Nightly for some features: Branch and doc test coverage need nightly Rust.
- Requires llvm-tools: Install the
llvm-tools-previewcomponent.
Usage and Links (Example)
cargo install cargo-llvm-cov --locked
rustup component add llvm-tools-preview
cargo llvm-cov --open
cargo llvm-cov nextest --lcov --output-path lcov.info
Resources:
Pricing
cargo-llvm-cov is free and open source under the Apache-2.0 or MIT licence.
Recommended for?
- Rust teams needing accurate coverage, especially with nextest.
- Projects uploading to Codecov or similar services.
Conclusion
cargo-llvm-cov is the most precise and flexible way to measure Rust coverage, integrating cleanly with cargo and nextest.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with cargo-llvm-cov side by side.
Ccargo-tarpaulincargo-tarpaulin is an Apache-2.0 code coverage tool for Rust projects, with ptrace and LLVM engines and HTML, LCOV, Cobertura XML and JSON reports plus Coveralls and Codecov support.Compare with cargo-llvm-cov
Ccargo-nextestcargo-nextest is an Apache-2.0 next-generation test runner for Rust, up to 3x faster than cargo test per its site, with per-test process isolation, retries, partitioning, JUnit output and a filterset DSL.Compare with cargo-llvm-cov
CCodecovCodecov by Sentry is a code coverage reporting service that shows coverage for any language, CI and code host in pull request comments and dashboards, with flags, carryforward, test analytics for flaky tests and AI test generation.Compare with cargo-llvm-cov
CCoverallsCoveralls is a hosted code coverage history and statistics service that integrates with your CI to report repository, file and line-by-line coverage with pull request notices; free for open source with paid plans for private repos.Compare with cargo-llvm-cov
Ccargo-mutantscargo-mutants is an MIT-licensed mutation testing tool for Rust that injects bugs into your code and reports which ones your tests miss, with nextest support, sharding and diff-based runs.Compare with cargo-llvm-cov
Iinstainsta is an Apache-2.0 snapshot testing library for Rust by Armin Ronacher, with assert_snapshot! macros, serde-based formats, redactions, inline snapshots and the cargo insta review tool.Compare with cargo-llvm-cov