Skip to content

Commit 3617a60

Browse files
chore(core): add wgpu_* cfg keys not exposed in features
This resolves remaining outstanding cases that offend [`--check-cfg` in Rust 1.80](https://blog.rust-lang.org/2024/07/25/Rust-1.80.0.html#checked-cfg-names-and-values).
1 parent 7702793 commit 3617a60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wgpu-core/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ fn main() {
1010
metal: { all(any(target_os = "ios", target_os = "macos"), feature = "metal") },
1111
vulkan: { all(not(target_arch = "wasm32"), feature = "vulkan") }
1212
}
13+
println!("cargo::rustc-check-cfg=cfg(wgpu_core_doc)");
14+
println!("cargo::rustc-check-cfg=cfg(wgpu_validate_locks)");
1315
}

0 commit comments

Comments
 (0)