What is cargo-llvm-cov
maincargo-llvm-cov is a Cargo subcommand that provides a wrapper around rustc -C instrument-coverage to facilitate easy use of LLVM source-based code coverage.
Key features include:
- Precise Data: Generates line, region, and (optionally via nightly) branch coverage.
- Broad Support: Works with
cargo test,cargo run,cargo nextest, proc-macros (including UI tests liketrybuildandui_test), and doc tests (requires nightly). - Performance: Fast execution by only instrumenting necessary crates without adding extra layers between
rustc,cargo, andllvm-tools. - Compatibility: Provides a CLI compatible with standard Cargo commands.