cargo-udeps icon indicating copy to clipboard operation
cargo-udeps copied to clipboard

Support target_os

Open Porges opened this issue 2 years ago • 1 comments

It seems like target_os is not supported, leading to false positives.

Porges avatar Jun 08 '22 21:06 Porges

Maybe you mean something different than what I experience. But I get false negatives due to this. If I run cargo udeps --all-targets on Linux, in a crate with:

[target.'cfg(target_os="macos")'.dependencies]
an_unused_dependency = "1"

It will not find it. Is there any way to make cargo udeps check all targets. Sorry if this is not at all what the issue is about.

faern avatar Jul 01 '22 11:07 faern