cargo-llvm-cov review
A free, open-source Cargo tool with broad reports and CI-ready coverage controls.
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
cargo-llvm-cov is an open-source Cargo subcommand for measuring code coverage in Rust projects. It uses LLVM source-based instrumentation and can run cargo test, cargo run, or cargo-nextest workflows. The tool suits Rust teams that want coverage reporting during local development and continuous integration, especially when coverage thresholds and uncovered-item limits need to be part of a repeatable CI workflow. It also supports C and C++ coverage when that code is linked through Rust libraries or binaries via FFI.
Coverage depth and reporting breadth are major strengths. The published capabilities include line, region, function, optional branch, and MC/DC coverage types, along with merging coverage collected under different test conditions. Reports can be exported as HTML, text, JSON, LCOV, Cobertura, or Codecov Custom Coverage. That range supports both readable local reports and downstream CI or coverage-service workflows. GitHub Actions, GitLab CI, Codecov, cargo-nextest, and VS Code are part of its surrounding integration fit, while Windows, macOS, and Linux support makes it suitable for varied development environments.
For teams adopting coverage gates, thresholds and uncovered-item limits provide direct control over pass or fail criteria. The open-source model keeps the tool available without commercial plan distinctions, and self-hosted use fits teams that want coverage processing within their own development or CI setup. The main boundary is scope: its workflow is built around Cargo and Rust, with C and C++ coverage tied to Rust FFI. Branch coverage and MC/DC are also documented as unstable features. Choose cargo-llvm-cov when Rust coverage depth, report flexibility, and CI controls matter; consider another tool when the primary need is broader language coverage outside Rust-linked C or C++.
Questions about cargo-llvm-cov
What does cargo-llvm-cov run on? Windows, macOS and Linux. It runs self-hosted.
What does cargo-llvm-cov integrate with? 5 integrations: GitHub Actions, GitLab CI, Codecov, cargo-nextest and VS Code.
Who is cargo-llvm-cov built for? Solo users, small businesses, mid-market companies and enterprises (our editorial estimate).
cargo-llvm-cov pros and cons
- Where it wins
- Supports line, region, function, optional branch, and MC/DC coverage types
- Exports HTML, text, JSON, LCOV, Cobertura, and Codecov formats
- Works with GitHub Actions, GitLab CI, Codecov, and cargo-nextest
- Where it doesn't
- Branch coverage and MC/DC are documented as unstable features
- C and C++ coverage is limited to code linked through Rust FFI
- Its workflow is centered on Cargo-based Rust projects
cargo-llvm-cov fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update