**Description** The tests read directly from the output of cargo tree, which and fail if e.g. wgpu for webgpu uses naga as a dev dependency **Repro steps** Look at CI failures on #8217 **Expected vs observed behavior** We should be using a more structured dependency check, such as from [cargo_metadata](https://crates.io/crates/cargo_metadata)