cargo-llvm-cov
Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).
0.9.0
7.3M downloads/mo
#3691 most downloaded on crates.io
taiki-e/cargo-llvm-cov
What this package is like to depend on
Last release 7 days ago
16 Aug 2026
Release timing varies
gaps range from 2 weeks to 6 months
Nearly every release is documented
notes for 115 of 115 stable releases
3 versions withdrawn
withdrawn after publishing
6 years old
123 releases · first in 2021
17 releases in the last 12 months
see the full history below
Release timeline
123 releases · Jan 2021 to Aug 2026Releases
latest 60 of 123-
0.9.016 Aug 2026Release notes
Open source →-
Change
--show-missing-linesreporting to aggregate consecutive line numbers. (#497, thanks @saroad2)- This is a breaking change for users who were previously parsing the output programmatically.
-
Fix doctest coverage in 2024 edition workspaces with multiple packages. (#507, thanks @Eljees)
-
Fix an issue where build scripts appeared in reports even without
--include-build-scriptwhen Cargo's new build-dir layout is used. -
Fix output format of
--fish. (#504, thanks @olexander-movchan) -
Support
--workspace/--allincargo llvm-cov reportsubcommand. (#500, thanks @palfrey) -
Support
-malias added in Cargo 1.97.
Release notes
Open source →-
Change
--show-missing-linesreporting to aggregate consecutive line numbers. (#497, thanks @saroad2)- This is a breaking change for users who were previously parsing the output programmatically.
-
Fix doctest coverage in 2024 edition workspaces with multiple packages. (#507, thanks @Eljees)
-
Fix an issue where build scripts appeared in reports even without
--include-build-scriptwhen Cargo's new build-dir layout is used. -
Fix output format of
--fish. (#504, thanks @olexander-movchan) -
Support
--workspace/--allincargo llvm-cov reportsubcommand. (#500, thanks @palfrey) -
Support
-malias added in Cargo 1.97.
-
-
0.8.713 May 2026 -
0.8.609 May 2026Release notes
Open source →-
Add support for unstable new layout of Cargo's
build-dir(-Zbuild-dir-new-layout). (#483, thanks @ranger-ross) -
Add
--fail-under-file-linesoption to set per-file coverage threshold. (#486, thanks @krady21) -
Ask to run
rustup installon stderr. (#490, thanks @narpfel) -
Fix "missing or invalid
CACHEDIR.TAGfile" error with recent Cargo. (#491)
Release notes
Open source →-
Add support for unstable new layout of Cargo's
build-dir(-Zbuild-dir-new-layout). (#483, thanks @ranger-ross) -
Add
--fail-under-file-linesoption to set per-file coverage threshold. (#486, thanks @krady21) -
Ask to run
rustup installon stderr. (#490, thanks @narpfel) -
Fix "missing or invalid
CACHEDIR.TAGfile" error with recent Cargo. (#491)
-
-
0.8.520 Mar 2026 -
0.8.406 Feb 2026Release notes
Open source →- Update minimal version of
cargo-config2to 0.1.40 to fix error with custom targets in recent nightly.
Release notes
Open source →- Update minimal version of
cargo-config2to 0.1.40 to fix error with custom targets in recent nightly.
- Update minimal version of
-
0.8.305 Feb 2026Release notes
Open source →-
cargo llvm-cov show-envimprovements:- Add
--cshfor csh and tcsh. - Add
--nufor nushell. - Add
--xonshfor xonsh.
- Add
-
Diagnostics improvements.
Release notes
Open source →-
cargo llvm-cov show-envimprovements:- Add
--cshfor csh and tcsh. - Add
--nufor nushell. - Add
--xonshfor xonsh.
- Add
-
Diagnostics improvements.
-
-
0.8.227 Jan 2026 -
0.8.126 Jan 2026Release notes
Open source →-
Back "cargo-llvm-cov subcommands other than report and clean may not work correctly ..." error to warning.
This was changed from a warning to an error in 0.7.0, but it has been reverted because a case where it previously worked without issues was reported.
Release notes
Open source →-
Back "cargo-llvm-cov subcommands other than report and clean may not work correctly ..." error to warning.
This was changed from a warning to an error in 0.7.0, but it has been reverted because a case where it previously worked without issues was reported.
-
-
0.8.026 Jan 2026Release notes
Open source →-
Support glob pattern, versioned name with partial version or
<name>@<version>syntax, and package spec in--package. Previously, only package name and versioned package name with<name>:<full_version>are supported. (#476)This also fixes regression introduced in 0.7.0 where causing packages specified with
--packageare wrongly excluded from report/test when package is specified with the above syntaxes. -
Support glob pattern, versioned name, and package spec in
--exclude. When we tested it previously, Cargo did not support this, but the current version of Cargo does support it. (#476) -
Align the exclusion behavior in reports when cargo-llvm-cov is performed in a sub-crate directory of a workspace or in the root crate of a non-virtual workspace without using
--workspaceor--package, to match the behavior when--workspaceor--packageis used (by default, only show the tested crates). (#476)Compatibility Note: When
--workspaceor--packageis not used, this will exclude other untested workspace members from the report that were previously implicitly included.If you want to test other workspace members, consider using
--workspaceor--package. If you don't want to test other workspace members but still want to include them in the report, consider using--workspaceor--exclude-from-test.
Release notes
Open source →-
Support glob pattern, versioned name with partial version or
<name>@<version>syntax, and package spec in--package. Previously, only package name and versioned package name with<name>:<full_version>are supported. (#476)This also fixes regression introduced in 0.7.0 where causing packages specified with
--packageare wrongly excluded from report/test when package is specified with the above syntaxes. -
Support glob pattern, versioned name, and package spec in
--exclude. When we tested it previously, Cargo did not support this, but the current version of Cargo does support it. (#476) -
Align the exclusion behavior in reports when cargo-llvm-cov is performed in a sub-crate directory of a workspace or in the root crate of a non-virtual workspace without using
--workspaceor--package, to match the behavior when--workspaceor--packageis used (by default, only show the tested crates). (#476)Compatibility Note: When
--workspaceor--packageis not used, this will exclude other untested workspace members from the report that were previously implicitly included.If you want to test other workspace members, consider using
--workspaceor--package. If you don't want to test other workspace members but still want to include them in the report, consider using--workspaceor--exclude-from-test.
-
-
0.7.124 Jan 2026Release notes
Open source →- Fix regression introduced in 0.7.0 where causing coverage test failure in nextest's CI. (6e30e6f)
Release notes
Open source →- Fix regression introduced in 0.7.0 where causing coverage test failure in nextest's CI. (6e30e6f)
-
0.7.024 Jan 2026Release notes
Open source →-
Improve compilation time, execution time, and disk usage by applying the flags required for code coverage instrumentation only to the crates that actually need them. (#471)
Previously, there flags ware applied to the entire dependency graph, but most of it was actually unnecessary. Previous behavior can be opted into with
--no-rustc-wrapper. -
Fix a bug where
--packageoption is not correctly handled and other unspecified workspace members are shown in the report. (#473) -
Support coverage for proc-macro and build script even with cross-compilation. (#471)
Previously, it was only supported when testing against the host target.
-
Stabilize
--dep-coverage. (#471)Several bugs have been fixed, and improvements such as supporting multiple crates have also been made.
-
Stabilize
--disable-default-ignore-filename-regexas--no-default-ignore-filename-regex. (8db80d5)The old name is still available as an alias, but may removed in future breaking release.
-
cargo llvm-cov show-envimprovements: -
Turn some warnings into hard error. (837a118)
-
Diagnostics improvements. (93840f8)
-
Documentation improvements.
-
-
0.6.2422 Jan 2026Release notes
Open source →-
Support
*-windows-gnullvmtargets. (#470, thanks @mati865) -
Fix a bug causing
--profraw-onlyto remove too many files. (#469, thanks @smoelius) -
Distribute prebuilt binary for AArch64 Windows.
-C instrument-coveragedoesn't supportaarch64-pc-windows-msvcyet (rust-lang/rust#150123), but cross-compile toaarch64-pc-windows-gnullvmworks.
-
-
0.6.2306 Jan 2026 -
0.6.2230 Dec 2025Release notes
Open source →-
Update documentation to mention the way to get coverage for
wasm32-unknown-unknowntarget. -
Exclude files named
tests.rs/*_tests.rs/*-tests.rsfrom the report by default.
-
-
0.6.2110 Oct 2025Release notes
Open source →- Update minimal version of
cargo-config2to 0.1.39 to fix regression causing "invalid type: .., expected struct TargetConfig" error when a custom field used intarget.<triple>config. (#454)
- Update minimal version of
-
0.6.2004 Oct 2025 -
0.6.1907 Sep 2025 -
0.6.1819 Jul 2025Release notes
Open source →- Fix bug in exclude of local vendored sources on Windows. (#442, thanks @LittleBoxOfSunshine)
-
0.6.1706 Jul 2025 -
0.6.1616 Jan 2025Release notes
Open source →-
Add
--with-pwsh-env-prefixtocargo llvm-cov show-envsubcommand. (#411, thanks @LittleBoxOfSunshine) -
Document usage with GitLab CI. (#405, thanks @jaskij)
-
Document usage with afl.rs. (#369, thanks @njelich)
-
Update
ruzstdto 0.8.This increases the rustc version required to build cargo-llvm-cov. (rustc 1.73+ -> 1.81+) The cargo/rustc version required to run cargo-llvm-cov remains unchanged.
-
-
0.6.1521 Dec 2024Release notes
Open source →-
Remove dependency on
hometo relax the MSRV on Windows. -
Weaken errors related to rustc version to warnings. (#407)
-
-
0.6.1412 Oct 2024Release notes
Open source →- Add unstable
--mcdcflag to enable mcdc coverage. (#383, thanks @Swatinem)
- Add unstable
-
0.6.1314 Sep 2024 -
0.6.1203 Sep 2024Release notes
Open source →-
Add
--profraw-onlyoption tocargo llvm-cov cleansubcommand. (#385, thanks @smoelius) -
Respect
target.<triple>.rustdocflagsthat added in Cargo 1.78. -
Disable quick-install fallback of cargo-binstall.
-
-
0.6.1118 Jul 2024Release notes
Open source →-
Add support for MC/DC coverage. (#363, thanks @aytey)
-
Documentation improvements.
-
-
0.6.1001 Jun 2024Release notes
Open source →-
Update
ruzstdto 0.7.This increases the rustc version required to build cargo-llvm-cov. (rustc 1.70+ -> 1.73+) The cargo/rustc version required to run cargo-llvm-cov remains unchanged.
-
-
0.6.905 Apr 2024Release notes
Open source →-
Skip merging profraw data if profraw files don't exist and a profdata file already exists. (#360, thanks @weiznich)
-
Update
openerto 0.7.
-
-
0.6.816 Mar 2024 -
0.6.710 Mar 2024Release notes
Open source →-
Add
--nextest-archive-fileoption tocargo llvm-cov reportto support calling it for the result ofcargo llvm-cov nextest --archive-file. (#355) -
Add unstable
--dep-coverageoption to show coverage of th specified dependency instead of the crates in the current workspace. (#353) -
Fix issues in report when merging coverage. (#354)
-
-
0.6.622 Feb 2024 -
0.6.507 Feb 2024Release notes
Open source →- Add
--skip-functionsflag to coverage generation. (#346, thanks @mlveggo)
- Add
-
0.6.425 Jan 2024 -
0.6.324 Jan 2024Release notes
Open source →- Fix "The file was not recognized as a valid object file" error with
--doc/--doctestsflag on WSL. (#343)
- Fix "The file was not recognized as a valid object file" error with
-
0.6.218 Jan 2024 -
0.6.113 Jan 2024 -
0.6.028 Dec 2023 -
0.5.3916 Dec 2023 -
0.5.3813 Dec 2023Release notes
Open source →- Fix panic when running tests at
/such as in docker. (#326, thanks @MikeDevresse)
- Fix panic when running tests at
-
0.5.3717 Nov 2023Release notes
Open source →- Add
--fail-under-{functions,regions}options. (#323, thanks @CobaltCause)
- Add
-
0.5.3630 Oct 2023Release notes
Open source →- Support
--doctestsflag incargo llvm-cov reportandcargo llvm-cov show-env.
- Support
-
0.5.3518 Oct 2023 -
0.5.3417 Oct 2023Release notes
Open source →- Improve performance and reduce disc usage by passing
--no-depstocargo metadata.
- Improve performance and reduce disc usage by passing
-
0.5.3326 Sep 2023Release notes
Open source →- Fix "The file was not recognized as a valid object file" error on WSL. (#317)
-
0.5.3223 Sep 2023Release notes
Open source →-
Fix an issue where codes in the standard library are not being properly excluded from reports when using a custom toolchain. (#311)
-
Document a way to display coverage in VS Code.
-
-
0.5.3124 Aug 2023 -
0.5.3023 Aug 2023 -
0.5.2923 Aug 2023 -
0.5.2822 Aug 2023 -
0.5.2714 Aug 2023Release notes
Open source →- Allow nightly to be specified by setting
RUSTC_BOOTSTRAP=1, the same as for rustc and cargo. (#298, thanks @RocketJas)
- Allow nightly to be specified by setting
-
0.5.2612 Aug 2023 -
0.5.2506 Aug 2023 -
0.5.2428 Jul 2023 -
0.5.2307 Jul 2023Release notes
Open source →-
Inject additional contextual information about cargo-llvm-cov into the JSON output of llvm-cov. (#289, thanks @dnaka91)
It allows other programs, that rely on this output, to make certain assertions about the behavior of cargo-llvm-cov and can help to share common information.
-
-
0.5.2229 Jun 2023 -
0.5.2129 Jun 2023 withdrawnRelease notes
Open source →Note: This release has been yanked due to regression fixed in 0.5.22.
- Fix "
-Z doctest-in-workspacehas been stabilized in the 1.72 release" warning on the latest nightly.
- Fix "
-
0.5.2002 Jun 2023Release notes
Open source →-
cargo-llvm-cov no longer sets the
RUST_TEST_THREADSandNEXTEST_TEST_THREADSenvironment variables. cargo-llvm-cov now adopts another efficient way to workaround rust-lang/rust#91092. (#279)This may greatly improve performance, especially when using
cargo llvm-cov nextest.
-
-
0.5.1928 Apr 2023Release notes
Open source →- Fix handling of
--cargo-profileoption forcargo llvm-cov nextest. (#269)
- Fix handling of
-
0.5.1825 Apr 2023 -
0.5.1721 Apr 2023 -
0.5.1618 Apr 2023Release notes
Open source →- Improve the
--codecovflag to match how region coverage is calculated to the HTML report. (#255, thanks @andrewgazelka)
- Improve the