From 98c345800a9d142910ebc173e6abedba16cc1a89 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Wed, 15 Oct 2025 16:02:29 -0700 Subject: [PATCH] [hal] Replace `cargo-clippy` feature with lint configuration. --- CHANGELOG.md | 1 + wgpu-hal/Cargo.toml | 11 ++--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c4ad62d3..b905dbb4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -85,6 +85,7 @@ SamplerDescriptor { - Reject fragment shader output `location`s > `max_color_attachments` limit. By @ErichDonGubler in [#8316](https://github.com/gfx-rs/wgpu/pull/8316). - WebGPU device requests now support the required limits `maxColorAttachments` and `maxColorAttachmentBytesPerSample`. By @evilpie in [#8328](https://github.com/gfx-rs/wgpu/pull/8328) - Reject binding indices that exceed `wgpu_types::Limits::max_bindings_per_bind_group` when deriving a bind group layout for a pipeline. By @jimblandy in [#8325](https://github.com/gfx-rs/wgpu/pull/8325). +- Removed three features from `wgpu-hal` which did nothing useful: `"cargo-clippy"`, `"gpu-allocator"`, and `"rustc-hash"`. By @kpreid in [#8357](https://github.com/gfx-rs/wgpu/pull/8357). #### DX12 diff --git a/wgpu-hal/Cargo.toml b/wgpu-hal/Cargo.toml index f11778c3c..bb300f610 100644 --- a/wgpu-hal/Cargo.toml +++ b/wgpu-hal/Cargo.toml @@ -36,7 +36,8 @@ ignored = ["cfg_aliases"] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = [ - 'cfg(web_sys_unstable_apis)', # web-sys uses this + 'cfg(feature, values("cargo-clippy"))', # objc's `msg_send` macro injects this in our code https://github.com/SSheldon/rust-objc/issues/125 + 'cfg(web_sys_unstable_apis)', # web-sys uses this ] } [lib] @@ -182,14 +183,6 @@ internal_error_panic = [] # Tracks validation errors in a `VALIDATION_CANARY` static. validation_canary = ["dep:parking_lot"] -################### -### Workarounds ### -################### - -# objc's `msg_send` macro injects this in our code https://github.com/SSheldon/rust-objc/issues/125 -# You shouldn't ever enable this feature. -cargo-clippy = [] - [[example]] name = "halmark"