Skip to content

Commit

Permalink
chore(core): add wgpu_* cfg keys not exposed in features
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
ErichDonGubler committed Aug 12, 2024
1 parent 0e65319 commit bd64590
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wgpu-core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ fn main() {
metal: { all(any(target_os = "ios", target_os = "macos"), feature = "metal") },
vulkan: { all(not(target_arch = "wasm32"), feature = "vulkan") }
}
println!("cargo::rustc-check-cfg=cfg(wgpu_core_doc)");
println!("cargo::rustc-check-cfg=cfg(wgpu_validate_locks)");
}

0 comments on commit bd64590

Please sign in to comment.