Open Nemo157 opened 8 months ago
Yes, upstream bug, but very long-standing so it would be nice if cargo-vet
worked around it somehow
https://github.com/rust-lang/cargo/issues/8462
If it's configured through the environment like I do, it could just be unset on the sub-process call. If it's configured through the config file AFAIK there is no way to say "use the default all targets".
When configuring
build.target
in~/.cargo/config.toml
or viaCARGO_BUILD_TARGET
cargo will default to implying--target $CARGO_BUILD_TARGET
for all commands, including thecargo metadata
call performed bycargo vet
. This means that dependencies that are not active for the set target will not be checked.This may be an upstream bug, I don't think
build.target
should imply--filter-platform
oncargo metadata
, but I'm not positive.