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 Sep 19, 2024
1 parent fda1128 commit 506e3fa
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 @@ -105,6 +105,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
serde = { workspace = true, features = ["derive"], optional = true }
Expand Down

0 comments on commit 506e3fa

Please sign in to comment.