chore: add web_sys_unstable_apis to lints.rust.unexpected_cfgs.check-cfg in wgpu_{hal,types}

This commit is contained in:
Erich Gubler 2024-09-05 08:43:47 -04:00
parent 143403cad1
commit b2c9b0af5a
2 changed files with 6 additions and 0 deletions

View File

@ -108,6 +108,9 @@ device_lost_panic = []
# Only affects the d3d12 and vulkan backends.
internal_error_panic = []
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] }
[[example]]
name = "halmark"

View File

@ -34,6 +34,9 @@ serde = ["dep:serde"]
# Enables some internal instrumentation for debugging purposes.
counters = []
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] }
[dependencies]
bitflags = { workspace = true, features = ["serde"] }
serde = { workspace = true, features = ["derive"], optional = true }