You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring build.target in ~/.cargo/config.toml or via CARGO_BUILD_TARGET cargo will default to implying --target $CARGO_BUILD_TARGET for all commands, including the cargo metadata call performed by cargo vet. This means that dependencies that are not active for the set target will not be checked.
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".
Sometimes one man's bug can be another one's feature. I was looking for a solution like requested in #63 to restrict dependencies to a specific target (for projects which only ever use a single one), and I found this "issue" which allows me to do that instead of adding manual exceptions. Therefore, I would prefer to keep this behavior for now or add an alternative configuration to enable exactly that.
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.The text was updated successfully, but these errors were encountered: