Skip to content

Commit 99df369

Browse files
chore: add web_sys_unstable_apis to lints.rust.unexpected_cfgs.check-cfg in wgpu_{hal,types}
1 parent 4c3df69 commit 99df369

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

wgpu-hal/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ device_lost_panic = []
105105
# Only affects the d3d12 and vulkan backends.
106106
internal_error_panic = []
107107

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

wgpu-types/Cargo.toml

+3
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)