CI/xtask for Validating State of Dependency Tree #6981
Open
Description
cargo tree
is a very useful tool for evaluating the dependency tree on a given platform, package, and feature set.
We should build a set of queries that tests for/against the presence of dependencies on certain platforms in certain situations. There's no obvious programmatic output, but a regex done in an xtask would be plenty.
Discovered as part of the absolute chaos that is #6980 and to validate #6949. Possible queries:
cargo tree -p wgpu --target wasm32-unknown-unknown -e normal
does not containwgpu-core
cargo tree -p wgpu --target wasm32-unknown-unknown --features wgsl,spirv -e normal
does not containwgpu-core
cargo tree -p wgpu --target x86_64-pc-windows-msvc -e normal
does not containweb-sys
etc.