Skip to content

Commit 91425c2

Browse files
chore: add web_sys_unstable_apis to lints.rust.unexpected_cfgs.check-cfg in wgpu_{hal,types}
1 parent 7dcdb76 commit 91425c2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

wgpu-hal/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ device_lost_panic = []
106106
# Only affects the d3d12 and vulkan backends.
107107
internal_error_panic = []
108108

109+
[lints.rust]
110+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] }
111+
109112
[[example]]
110113
name = "halmark"
111114

wgpu-types/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ serde = ["dep:serde"]
3434
# Enables some internal instrumentation for debugging purposes.
3535
counters = []
3636

37+
[lints.rust]
38+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] }
39+
3740
[dependencies]
3841
bitflags.workspace = true
3942
serde = { workspace = true, features = ["derive"], optional = true }

0 commit comments

Comments
 (0)