Skip to content

Commit

Permalink
chore: add web_sys_unstable_apis to `lints.rust.unexpected_cfgs.che…
Browse files Browse the repository at this point in the history
…ck-cfg` in `wgpu_{hal,types}`
  • Loading branch information
ErichDonGubler committed Dec 12, 2024
1 parent 58b6f44 commit 788ce38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wgpu-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions wgpu-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 788ce38

Please sign in to comment.