chore(deps): update rust crate cargo_metadata to 0.20 (#7744)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
This commit is contained in:
renovate[bot]
2025-06-11 11:24:33 -04:00
committed by GitHub
parent db3c35db90
commit 5a7af54619
5 changed files with 80 additions and 10 deletions

View File

@@ -40,7 +40,6 @@ arrayvec.workspace = true
approx.workspace = true
bitflags.workspace = true
bytemuck.workspace = true
cargo_metadata.workspace = true
cfg-if.workspace = true
ctor.workspace = true
futures-lite.workspace = true
@@ -62,6 +61,8 @@ trybuild.workspace = true
# Non-Webassembly
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# Cargo-metadata doesn't compile on wasm due to old cargo-util-schemas dependency.
cargo_metadata.workspace = true
env_logger.workspace = true
nv-flip.workspace = true
parking_lot = { workspace = true, features = ["deadlock_detection"] }

View File

@@ -1,3 +1,7 @@
// Cargo-metadata doesn't compile on wasm due to old cargo-util-schemas dependency.
// Since this test isn't dependent on the current architecture, we can just skip it on wasm without any issues.
#![cfg(not(target_arch = "wasm32"))]
use std::process::Command;
#[derive(Debug)]
@@ -84,7 +88,7 @@ fn get_all_wgpu_features() -> Vec<String> {
metadata
.packages
.iter()
.find(|p| p.name == "wgpu")
.find(|p| p.name.as_str() == "wgpu")
.unwrap()
.features
.keys()