cargo-llvm-cov
cargo-llvm-cov is a Cargo subcommand that wraps rustc’s LLVM source-based coverage instrumentation.
What cargo-llvm-cov is
cargo-llvm-cov is a Cargo subcommand that wraps rustc’s LLVM source-based coverage instrumentation. It generates line and region coverage reports and works with cargo test, cargo run and cargo nextest through a Cargo-compatible command-line interface. It supports proc-macro UI tests; doc-test coverage is optional and requires nightly features. Branch coverage is also optional and currently requires nightly Rust. Reports can be generated as text, HTML, JSON, LCOV, Cobertura XML or Codecov Custom Coverage format. The project provides CI examples for Codecov uploads with GitHub Actions and Cobertura output with GitLab CI, and LCOV reports can be displayed in VS Code using Coverage Gutters. With compatible Clang and LLVM tools configured, it can include coverage for C and C++ code linked to a Rust library or binary. The free, open-source project is available under either Apache-2.0 or MIT. It supports Linux, macOS and Windows. Installing it currently requires rustc 1.87 or newer; running it requires Cargo 1.60 or newer. Branch and doc-test coverage are unstable and have known limitations.
Good
- Supports cargo test, cargo run and cargo nextest.
- Offers six report formats.
- Free and open source under Apache-2.0 or MIT.
- Supports Linux, macOS and Windows.
Watch out
- Installation requires rustc 1.87 or newer.
- Branch coverage requires nightly Rust.
- Doc-test coverage requires nightly features and has known issues.
Who it suits
cargo-llvm-cov suits Rust developers who want coverage reports from common Cargo test and run workflows. It can also cover linked C or C++ code when compatible Clang and LLVM tools are configured.
Verdict
cargo-llvm-cov provides several report formats and integrates with Cargo workflows. Its optional branch and doc-test coverage have nightly requirements and limitations.
Plans and prices
From cargo-llvm-cov's own pricing page, checked 8 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| Free / open source | Free | Apache-2.0 or MIT licensed · no paid plans stated |
The facts
Each one read from cargo-llvm-cov's own pages, with the date it was checked.
What it does
- CI integrations
- The README provides GitHub Actions examples for uploading reports to Codecov and a GitLab CI example using Cobertura output.checked 8 Oct 2026
- Coverage types
- It generates line and region coverage, while branch coverage is optional and currently requires nightly Rust.checked 8 Oct 2026
- Editor integration
- LCOV output can be displayed in VS Code using the Coverage Gutters extension.checked 8 Oct 2026
- Installation
- It can be installed from source with Cargo, as a prebuilt release binary, through GitHub Actions, Homebrew, Scoop, cargo-binstall, pacman, or FreeBSD ports.checked 8 Oct 2026
- Known limitations
- Branch coverage is unstable, and doc-test coverage is unstable and has known issues.checked 8 Oct 2026
- License
- The project is available under either the Apache License 2.0 or the MIT License, at the user's option.checked 8 Oct 2026
- Other code coverage
- With compatible Clang and LLVM tools configured, it can include coverage for C/C++ code linked to a Rust library or binary.checked 8 Oct 2026
- Purpose
- cargo-llvm-cov is a Cargo subcommand that wraps rustc’s LLVM source-based code coverage instrumentation.checked 8 Oct 2026
- Report formats
- Coverage reports can be generated as text, HTML, JSON, LCOV, Cobertura XML, or Codecov Custom Coverage format.checked 8 Oct 2026
- Requirements
- Installing currently requires rustc 1.87 or newer, while running it requires Cargo 1.60 or newer.checked 8 Oct 2026
- Rust test support
- It supports proc-macro UI tests and doc tests, though doc-test coverage is optional and requires nightly features.checked 8 Oct 2026
- Security and releases
- The README says releases are immutable and releases since 0.8.5 publish artifact attestations, with commands documented for verifying release and artifact attestations.checked 8 Oct 2026
- Test runners
- It supports cargo test, cargo run, and cargo nextest through a Cargo-compatible command-line interface.checked 8 Oct 2026
Where it runs
- Platform coverage
- Prebuilt binaries are listed for Linux, macOS, Windows, and FreeBSD; confirmed Windows targets include x86_64 and i686 MSVC and x86_64 and aarch64 GNU/LLVM MinGW.checked 8 Oct 2026
Alternatives to cargo-llvm-cov
- 1

Codecov
Free planOpen sourceWebAPIExtensionLinux8.0From $5 a month - 2
Avidemux
Free planOpen sourceWebLinuxmacOSWindows7.3Free plan - 3
Coverage.py
Free planOpen sourceAPILinuxmacOSSelf-hosted7.3Free plan - 4

Coveralls
Free planWebAPILinuxSelf-hosted6.8From $10 a month - 5
ReportGenerator
Free planLinuxmacOSWindows6.8$79 one-time - 6
gcov
Free planLinuxmacOSWindows6.5Free plan
