PackageTrack
Sign in Get early access

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 2026
2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 60 of 123
  1. 0.9.0 16 Aug 2026
    Release notes
    • Change --show-missing-lines reporting 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-script when Cargo's new build-dir layout is used.

    • Fix output format of --fish. (#504, thanks @olexander-movchan)

    • Support --workspace/--all in cargo llvm-cov report subcommand. (#500, thanks @palfrey)

    • Support -m alias added in Cargo 1.97.

    Open source →
    Release notes
    • Change --show-missing-lines reporting 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-script when Cargo's new build-dir layout is used.

    • Fix output format of --fish. (#504, thanks @olexander-movchan)

    • Support --workspace/--all in cargo llvm-cov report subcommand. (#500, thanks @palfrey)

    • Support -m alias added in Cargo 1.97.

    Open source →
    Release notes

    0.9.0 Latest

    Latest

    Compare

    Choose a tag to compare

    Open source →
  2. 0.8.7 13 May 2026
    Release notes
    Open source →
    Release notes
    • Add --coverage-host-only flag. (#493, thanks @davidhewitt)
    Open source →
    Release notes

    0.8.7

    Compare

    Choose a tag to compare

    Open source →
  3. 0.8.6 09 May 2026
    Release notes
    • Add support for unstable new layout of Cargo's build-dir (-Zbuild-dir-new-layout). (#483, thanks @ranger-ross)

    • Add --fail-under-file-lines option to set per-file coverage threshold. (#486, thanks @krady21)

    • Ask to run rustup install on stderr. (#490, thanks @narpfel)

    • Fix "missing or invalid CACHEDIR.TAG file" error with recent Cargo. (#491)

    Open source →
    Release notes
    • Add support for unstable new layout of Cargo's build-dir (-Zbuild-dir-new-layout). (#483, thanks @ranger-ross)

    • Add --fail-under-file-lines option to set per-file coverage threshold. (#486, thanks @krady21)

    • Ask to run rustup install on stderr. (#490, thanks @narpfel)

    • Fix "missing or invalid CACHEDIR.TAG file" error with recent Cargo. (#491)

    Open source →
    Release notes

    0.8.6

    Compare

    Choose a tag to compare

    Open source →
  4. 0.8.5 20 Mar 2026
    Release notes Open source →
    Release notes Open source →
    Release notes

    0.8.5

    Compare

    Choose a tag to compare

    Open source →
  5. 0.8.4 06 Feb 2026
    Release notes
    • Update minimal version of cargo-config2 to 0.1.40 to fix error with custom targets in recent nightly.
    Open source →
    Release notes
    • Update minimal version of cargo-config2 to 0.1.40 to fix error with custom targets in recent nightly.
    Open source →
    Release notes

    0.8.4

    Compare

    Choose a tag to compare

    Open source →
  6. 0.8.3 05 Feb 2026
    Release notes
    • cargo llvm-cov show-env improvements:

      • Add --csh for csh and tcsh.
      • Add --nu for nushell.
      • Add --xonsh for xonsh.
    • Diagnostics improvements.

    Open source →
    Release notes
    • cargo llvm-cov show-env improvements:

      • Add --csh for csh and tcsh.
      • Add --nu for nushell.
      • Add --xonsh for xonsh.
    • Diagnostics improvements.

    Open source →
    Release notes

    0.8.3

    Compare

    Choose a tag to compare

    Open source →
  7. 0.8.2 27 Jan 2026
    Release notes
    Open source →
    Release notes
    Open source →
    Release notes

    0.8.2

    Compare

    Choose a tag to compare

    Open source →
  8. 0.8.1 26 Jan 2026
    Release notes
    • 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.

    Open source →
    Release notes
    • 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.

    Open source →
    Release notes

    0.8.1

    Compare

    Choose a tag to compare

    Open source →
  9. 0.8.0 26 Jan 2026
    Release notes
    • 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 --package are 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 --workspace or --package, to match the behavior when --workspace or --package is used (by default, only show the tested crates). (#476)

      Compatibility Note: When --workspace or --package is 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 --workspace or --package. If you don't want to test other workspace members but still want to include them in the report, consider using --workspace or --exclude-from-test.

    Open source →
    Release notes
    • 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 --package are 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 --workspace or --package, to match the behavior when --workspace or --package is used (by default, only show the tested crates). (#476)

      Compatibility Note: When --workspace or --package is 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 --workspace or --package. If you don't want to test other workspace members but still want to include them in the report, consider using --workspace or --exclude-from-test.

    Open source →
    Release notes

    0.8.0

    Compare

    Choose a tag to compare

    Open source →
  10. 0.7.1 24 Jan 2026
    Release notes
    • Fix regression introduced in 0.7.0 where causing coverage test failure in nextest's CI. (6e30e6f)
    Open source →
    Release notes
    • Fix regression introduced in 0.7.0 where causing coverage test failure in nextest's CI. (6e30e6f)
    Open source →
    Release notes

    0.7.1

    Compare

    Choose a tag to compare

    Open source →
  11. 0.7.0 24 Jan 2026
    Release notes
    • 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 --package option 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-regex as --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-env improvements:

      • Add --cmd and --fish. (#472)

      • Rename --export-prefix to --sh, --with-pwsh-env-prefix to --pwsh for consistency and clarity. (#472)

        The old names are still available as aliases, but may removed in future breaking release.

    • Turn some warnings into hard error. (837a118)

    • Diagnostics improvements. (93840f8)

    • Documentation improvements.

    Open source →
  12. 0.6.24 22 Jan 2026
    Release notes
    • Support *-windows-gnullvm targets. (#470, thanks @mati865)

    • Fix a bug causing --profraw-only to remove too many files. (#469, thanks @smoelius)

    • Distribute prebuilt binary for AArch64 Windows. -C instrument-coverage doesn't support aarch64-pc-windows-msvc yet (rust-lang/rust#150123), but cross-compile to aarch64-pc-windows-gnullvm works.

    Open source →
  13. 0.6.23 06 Jan 2026
    Release notes Open source →
  14. 0.6.22 30 Dec 2025
    Release notes
    • Update documentation to mention the way to get coverage for wasm32-unknown-unknown target.

    • Exclude files named tests.rs/*_tests.rs/*-tests.rs from the report by default.

    Open source →
  15. 0.6.21 10 Oct 2025
    Release notes
    • Update minimal version of cargo-config2 to 0.1.39 to fix regression causing "invalid type: .., expected struct TargetConfig" error when a custom field used in target.<triple> config. (#454)
    Open source →
  16. 0.6.20 04 Oct 2025
    Release notes
    • Support Cargo build-dir that added in Cargo 1.91. (#452)

    • Update minimal version of cargo-config2 to 0.1.38 to improve support for target names that contain ".". (#446)

    Open source →
  17. 0.6.19 07 Sep 2025
    Release notes
    • Distribute prebuilt binaries for powerpc64le/riscv64gc/s390x Linux.
    Open source →
  18. 0.6.18 19 Jul 2025
    Release notes
    • Fix bug in exclude of local vendored sources on Windows. (#442, thanks @LittleBoxOfSunshine)
    Open source →
  19. 0.6.17 06 Jul 2025
    Release notes
    • Exclude local vendored sources by default. (#438, thanks @Altair-Bueno)

    • Remove dependency on is_executable. (#422)

    • Update opener to 0.8.

    • Update duct to 1.

    • Documentation improvements.

    Open source →
  20. 0.6.16 16 Jan 2025
    Release notes
    • Add --with-pwsh-env-prefix to cargo llvm-cov show-env subcommand. (#411, thanks @LittleBoxOfSunshine)

    • Document usage with GitLab CI. (#405, thanks @jaskij)

    • Document usage with afl.rs. (#369, thanks @njelich)

    • Update ruzstd to 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.

    Open source →
  21. 0.6.15 21 Dec 2024
    Release notes
    • Remove dependency on home to relax the MSRV on Windows.

    • Weaken errors related to rustc version to warnings. (#407)

    Open source →
  22. 0.6.14 12 Oct 2024
    Release notes
    • Add unstable --mcdc flag to enable mcdc coverage. (#383, thanks @Swatinem)
    Open source →
  23. 0.6.13 14 Sep 2024
    Release notes
    • Distribute prebuilt binary for x86_64 FreeBSD.
    Open source →
  24. 0.6.12 03 Sep 2024
    Release notes
    • Add --profraw-only option to cargo llvm-cov clean subcommand. (#385, thanks @smoelius)

    • Respect target.<triple>.rustdocflags that added in Cargo 1.78.

    • Disable quick-install fallback of cargo-binstall.

    Open source →
  25. 0.6.11 18 Jul 2024
    Release notes
    • Add support for MC/DC coverage. (#363, thanks @aytey)

    • Documentation improvements.

    Open source →
  26. 0.6.10 01 Jun 2024
    Release notes
    • Update ruzstd to 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.

    Open source →
  27. 0.6.9 05 Apr 2024
    Release notes
    • Skip merging profraw data if profraw files don't exist and a profdata file already exists. (#360, thanks @weiznich)

    • Update opener to 0.7.

    Open source →
  28. 0.6.8 16 Mar 2024
    Release notes
    • Add unstable --branch flag to enable branch coverage. (#356)
    Open source →
  29. 0.6.7 10 Mar 2024
    Release notes
    • Add --nextest-archive-file option to cargo llvm-cov report to support calling it for the result of cargo llvm-cov nextest --archive-file. (#355)

    • Add unstable --dep-coverage option to show coverage of th specified dependency instead of the crates in the current workspace. (#353)

    • Fix issues in report when merging coverage. (#354)

    Open source →
  30. 0.6.6 22 Feb 2024
    Release notes
    • It is no longer needed to pass --target/--release/--cargo-profile to cargo llvm-cov nextest --archive-file in most cases. Options passed to cargo llvm-cov nextest-archive are now respected. (#349)

    • Support --release and --cargo-profile options for cargo llvm-cov nextest-archive. (#348)

    Open source →
  31. 0.6.5 07 Feb 2024
    Release notes
    • Add --skip-functions flag to coverage generation. (#346, thanks @mlveggo)
    Open source →
  32. 0.6.4 25 Jan 2024
    Release notes
    • Make home dependency Windows-only dependency.
    Open source →
  33. 0.6.3 24 Jan 2024
    Release notes
    • Fix "The file was not recognized as a valid object file" error with --doc/--doctests flag on WSL. (#343)
    Open source →
  34. 0.6.2 18 Jan 2024
    Release notes
    • Support setting file name of LLVM_PROFILE_FILE. (#340)
    Open source →
  35. 0.6.1 13 Jan 2024
    Release notes
    • Support --target option for cargo llvm-cov nextest-archive. (#334)

    • Support --no-cfg-coverage and --no-cfg-coverage-nightly flags in cargo llvm-cov show-env. (#333)

    Open source →
  36. 0.6.0 28 Dec 2023
    Release notes
    • Make --hide-instantiations flag default, and add --show-instantiations flag to allow opt-in of the previous behavior. (#330)

    • Support cargo llvm-cov nextest --archive-file. (#266, thanks @magnusja)

    • Add hint about cfgs. (#330)

    Open source →
  37. 0.5.39 16 Dec 2023
    Release notes
    • Remove dependency on is-terminal.
    Open source →
  38. 0.5.38 13 Dec 2023
    Release notes
    • Fix panic when running tests at / such as in docker. (#326, thanks @MikeDevresse)
    Open source →
  39. 0.5.37 17 Nov 2023
    Release notes
    • Add --fail-under-{functions,regions} options. (#323, thanks @CobaltCause)
    Open source →
  40. 0.5.36 30 Oct 2023
    Release notes
    • Support --doctests flag in cargo llvm-cov report and cargo llvm-cov show-env.
    Open source →
  41. 0.5.35 18 Oct 2023
    Release notes
    • Improve compile time.
    Open source →
  42. 0.5.34 17 Oct 2023
    Release notes
    • Improve performance and reduce disc usage by passing --no-deps to cargo metadata.
    Open source →
  43. 0.5.33 26 Sep 2023
    Release notes
    • Fix "The file was not recognized as a valid object file" error on WSL. (#317)
    Open source →
  44. 0.5.32 23 Sep 2023
    Release notes
    • 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.

    Open source →
  45. 0.5.31 24 Aug 2023
    Release notes
    • Fix empty source path generated in cobertura.xml. (#309, thanks @mstyura)

    • Prepare for future branch coverage support. (#308, thanks @Swatinem)

    Open source →
  46. 0.5.30 23 Aug 2023
    Release notes
    • Fix an issue where coverage is not collected or fails to generate coverage on cdylib or proc-macro crate on Windows. (#307)

    • Escape values that are shown by show-env subcommand. (#307)

    Open source →
  47. 0.5.29 23 Aug 2023
    Release notes
    • Diagnostics improvements. (#302)
    Open source →
  48. 0.5.28 22 Aug 2023
    Release notes
    • Diagnostics improvements. (#305, #306)
    Open source →
  49. 0.5.27 14 Aug 2023
    Release notes
    • Allow nightly to be specified by setting RUSTC_BOOTSTRAP=1, the same as for rustc and cargo. (#298, thanks @RocketJas)
    Open source →
  50. 0.5.26 12 Aug 2023
    Release notes
    • Fix support for trybuild 1.0.76+. (#301)
    Open source →
  51. 0.5.25 06 Aug 2023
    Release notes
    • Use --show-missing-lines logic in --fail-uncovered-lines. (#277, thanks @michaelvlach)

    • cargo-llvm-cov no longer sets the CARGO_INCREMENTAL=0 environment variable. (#297)

    Open source →
  52. 0.5.24 28 Jul 2023
    Release notes
    • Update cargo_metadata to 0.17.
    Open source →
  53. 0.5.23 07 Jul 2023
    Release notes
    • 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.

    Open source →
  54. 0.5.22 29 Jun 2023
    Release notes
    • Fix regression introduced in 0.5.21.
    Open source →
  55. 0.5.21 29 Jun 2023 withdrawn
    Release notes

    Note: This release has been yanked due to regression fixed in 0.5.22.

    • Fix "-Z doctest-in-workspace has been stabilized in the 1.72 release" warning on the latest nightly.
    Open source →
  56. 0.5.20 02 Jun 2023
    Release notes
    Open source →
  57. 0.5.19 28 Apr 2023
    Release notes
    • Fix handling of --cargo-profile option for cargo llvm-cov nextest. (#269)
    Open source →
  58. 0.5.18 25 Apr 2023
    Release notes
    • Support --ignore-run-fail for cargo llvm-cov nextest. (#263)
    Open source →
  59. 0.5.17 21 Apr 2023
    Release notes
    • Set CARGO_LLVM_COV environment variable. (#259, thanks @def-)
    Open source →
  60. 0.5.16 18 Apr 2023
    Release notes
    • Improve the --codecov flag to match how region coverage is calculated to the HTML report. (#255, thanks @andrewgazelka)
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive