-
Improve handling of cases where
llvm-tools-preview
component is not installed. (#219)TL;DR: You no longer need to manually install
llvm-tools-preview
before running cargo-llvm-cov in most cases.The new logic is based on the logic used by Miri when
rust-src
component orxargo
is not installed.See #219 for more.
-
Fix various CLI-related bugs. (#197, #217)
This fixes various bugs related to subcommands (especially
nextest
). The following is a partial list: -
Add
cargo llvm-cov report
subcommand. (#217) This is equivalent tocargo llvm-cov --no-run
, but it has a more obvious name and better diagnostics. -
Add
cargo llvm-cov test
subcommand. (#217) This is equivalent tocargo llvm-cov
without subcommand, except that test name filtering is supported. -
Deprecate
--no-run
in favor ofcargo llvm-cov report
subcommand. (#217) -
Add
--no-clean
flag to build without cleaning any old build artifacts. See #214 for more. -
cargo-llvm-cov no longer redirects output from stdout to stderr if unnecessary. (#206)
-
Support shared
target
directory. (#215) -
Support
--keep-going
(unstable),--ignore-rust-version
. (#217) -
Support
--exclude-from-report
and--ignore-run-fail
forcargo llvm-cov run
. (#217) -
Support relative path in
CARGO_LLVM_COV_TARGET_DIR
. (#220) -
Add
LLVM_COV_FLAGS
/LLVM_PROFDATA_FLAGS
environment variables to pass additional flags to llvm-cov/llvm-profdata in a space-separated list. (#220) -
Deprecate
CARGO_LLVM_COV_FLAGS
/CARGO_LLVM_PROFDATA_FLAGS
environment variables instead ofLLVM_COV_FLAGS
/LLVM_PROFDATA_FLAGS
environment variables. (#220) -
Document environment variables that cargo-llvm-cov reads. (#220)
-
Remove
cargo llvm-cov help
subcommand that was added automatically by clap. (#197) -
cargo-llvm-cov no longer maps the
--jobs
(-j
) option to llvm-cov/llvm-profdata's-num-threads
option.This is to avoid confusion when using the
-j
option withnextest
, which uses the-j
option in a different sense than cargo. -
Improve compile time. (#197)
-
Diagnostics improvements.