Closed taiki-e closed 3 months ago
Thank you very much! I was going to use a script for this, but I didn't expect to implement this feature so quickly!
there is a typo
--dep-coverage <NAME>
Show coverage of th specified dependency instead of the crates in the current workspace. (unstable)
@davidzeng0 Good catch! Fixed in 14904585689e91f96e3610bbabc47f57d7063670.
By default, cargo-llvm-cov only shows coverage of crates in the workspace.
This can be disabled by
--disable-default-ignore-filename-regex
flag. However, in this case, coverage of crates and all dependencies in the workspace will be shown.If you specify a dependency with the
--dep-coverage
option that this PR adds, only the coverage of that dependency will be shown. The following is using--dep-coverage memchr
:The option is currently marked as unstable due to limitations such as not yet being able to show coverage other than dependencies from crates.io.
cc @xizheyin