Repository: rustwasm/wasm-bindgen
Pull request #4290 (2024-11-27 22:23:09)

Update WebGPU API to draft 2024-11-22
Needed for https://github.com/gfx-rs/wgpu/issues/6614

nolanderc: Just pushed the same commit again, and now it works. Definitely a flaky test.

Patch:
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 11543229..6440da05 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,15 +1,2 @@
 [target.'cfg(target_arch = "wasm32")']
 runner = 'cargo run -p wasm-bindgen-cli --bin wasm-bindgen-test-runner --'
-
-[target.'cfg(all())']
-rustflags = [
-  "-Adead_code",
-  "-Anon_upper_case_globals",
-  "-Aunused_doc_comments",
-  "-Aclippy::large_enum_variant",
-  "-Aclippy::missing_safety_doc",
-  "-Aclippy::new_without_default",
-  "-Aclippy::overly_complex_bool_expr",
-  "-Aclippy::too_many_arguments",
-  "-Aclippy::type_complexity",
-]
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9d3f4ef1..b5e9de05 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -62,6 +62,7 @@ jobs:
     - run: rustup update --no-self-update stable && rustup default stable
     - run: rustup target add wasm32-unknown-unknown
     - run: cargo clippy --no-deps --all-features -p wasm-bindgen-backend -- -D warnings
+    - run: cargo clippy --no-deps --all-features -p wasm-bindgen -- -D warnings
     - run: cargo clippy --no-deps --all-features -p wasm-bindgen-cli -- -D warnings
     - run: cargo clippy --no-deps --all-features -p wasm-bindgen-cli-support -- -D warnings
     - run: cargo clippy --no-deps --all-features -p example-tests -- -D warnings
@@ -89,8 +90,8 @@ jobs:
     - uses: actions/checkout@v4
     - run: rustup update --no-self-update stable && rustup default stable
     - run: rustup target add wasm32-unknown-unknown
-    - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -p js-sys -- -D warnings
-    - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -p web-sys -- -D warnings
+    - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -p js-sys --all-targets -- -D warnings
+    - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -p web-sys --all-targets -- -D warnings
 
   # Run `cargo clippy` over crates that support `no_std`
   clippy_no_std:
@@ -111,7 +112,7 @@ jobs:
     name: Clippy `no_std` with `atomics`
     runs-on: ubuntu-latest
     env:
-      CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUSTFLAGS: -Ctarget-feature=+atomics,+bulk-memory
+      RUSTFLAGS: -Ctarget-feature=+atomics,+bulk-memory
     steps:
     - uses: actions/checkout@v4
     - run: rustup default nightly-2024-07-06
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66e2dbfd..d430b289 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -55,6 +55,9 @@
 * Deprecated `#[wasm_bindgen(thread_local)]` in favor of `#[wasm_bindgen(thread_local_v2)]`, which creates a `wasm_bindgen::JsThreadLocal`. It is similar to `std::thread::LocalKey` but supports `no_std`.
   [#4277](https://github.com/rustwasm/wasm-bindgen/pull/4277)
 
+* Updated the WebGPU API to the current draft as of 2024-11-22.
+  [#4290](https://github.com/rustwasm/wasm-bindgen/pull/4290)
+
 ### Fixed
 
 * Fixed methods with `self: &Self` consuming the object.
diff --git a/Cargo.toml b/Cargo.toml
index e9dba81a..873238e5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,6 +70,20 @@ wasm-bindgen-test-crate-b = { path = 'tests/crates/b' }
 [lints.rust]
 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }
 
+[lints.clippy]
+large_enum_variant = "allow"
+new_without_default = "allow"
+overly_complex_bool_expr = "allow"
+too_many_arguments = "allow"
+type_complexity = "allow"
+
+[workspace.lints.clippy]
+large_enum_variant = "allow"
+new_without_default = "allow"
+overly_complex_bool_expr = "allow"
+too_many_arguments = "allow"
+type_complexity = "allow"
+
 [workspace]
 exclude = ["crates/msrv"]
 members = [
diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml
index a19b7812..50d744bb 100644
--- a/crates/backend/Cargo.toml
+++ b/crates/backend/Cargo.toml
@@ -29,3 +29,6 @@ proc-macro2 = "1.0"
 quote = '1.0'
 syn = { version = '2.0', features = ['full'] }
 wasm-bindgen-shared = { path = "../shared", version = "=0.2.95" }
+
+[lints]
+workspace = true
diff --git a/crates/cli-support/Cargo.toml b/crates/cli-support/Cargo.toml
index 6db47660..6eed3b63 100644
--- a/crates/cli-support/Cargo.toml
+++ b/crates/cli-support/Cargo.toml
@@ -29,3 +29,6 @@ wasm-bindgen-shared = { path = "../shared", version = '=0.2.95' }
 wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.95' }
 wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.95' }
 wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.95' }
+
+[lints]
+workspace = true
diff --git a/crates/cli-support/src/lib.rs b/crates/cli-support/src/lib.rs
index 6253e89b..fb5b4f02 100755
--- a/crates/cli-support/src/lib.rs
+++ b/crates/cli-support/src/lib.rs
@@ -812,13 +812,3 @@ where
     pairs.sort_by_key(|(k, _)| *k);
     pairs.into_iter()
 }
-
-/// Like `sorted_iter`, but produces mutable references to the values
-fn sorted_iter_mut<K, V>(map: &mut HashMap<K, V>) -> impl Iterator<Item = (&K, &mut V)>
-where
-    K: Ord,
-{
-    let mut pairs = map.iter_mut().collect::<Vec<_>>();
-    pairs.sort_by_key(|(k, _)| *k);
-    pairs.into_iter()
-}
diff --git a/crates/cli-support/src/wit/nonstandard.rs b/crates/cli-support/src/wit/nonstandard.rs
index e43a4998..4ff93298 100644
--- a/crates/cli-support/src/wit/nonstandard.rs
+++ b/crates/cli-support/src/wit/nonstandard.rs
@@ -244,6 +244,7 @@ pub enum AuxImport {
         mutable: bool,      // whether or not this was a `FnMut` closure
         dtor: u32,          // table element index of the destructor function
         adapter: AdapterId, // the adapter which translates the types for this closure
+        #[allow(dead_code)]
         nargs: usize,
     },
 
diff --git a/crates/cli-support/src/wit/standard.rs b/crates/cli-support/src/wit/standard.rs
index 7feee898..e34866d2 100644
--- a/crates/cli-support/src/wit/standard.rs
+++ b/crates/cli-support/src/wit/standard.rs
@@ -40,6 +40,7 @@ pub enum AdapterKind {
         instructions: Vec<InstructionData>,
     },
     Import {
+        #[allow(dead_code)]
         module: String,
         name: String,
         kind: AdapterJsImportKind,
@@ -139,10 +140,12 @@ pub enum Instruction {
     /// Pops a typed integer (`u8`, `s16`, etc.) and pushes a plain Wasm `i32` or `i64` equivalent.
     IntToWasm {
         input: AdapterType,
+        #[allow(dead_code)]
         output: walrus::ValType,
     },
     /// Pops a Wasm `i32` or `i64` and pushes a typed integer (`u8`, `s16`, etc.) equivalent.
     WasmToInt {
+        #[allow(dead_code)]
         input: walrus::ValType,
         output: AdapterType,
     },
@@ -166,6 +169,7 @@ pub enum Instruction {
 
     OptionWasmToStringEnum {
         name: String,
+        #[allow(dead_code)]
         hole: u32,
     },
 
@@ -310,6 +314,7 @@ pub enum Instruction {
     /// pops ptr/length i32, loads string from cache
     CachedStringLoad {
         owned: bool,
+        #[allow(dead_code)]
         optional: bool,
         mem: walrus::MemoryId,
         free: walrus::FunctionId,
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index 4d0891b1..4ee94630 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -57,3 +57,6 @@ rustls-tls = ["ureq/tls"]
 # Legacy support
 openssl = ["dep:native-tls"]
 vendored-openssl = ["openssl", "native-tls/vendored"]
+
+[lints]
+workspace = true
diff --git a/crates/externref-xform/Cargo.toml b/crates/externref-xform/Cargo.toml
index ac3467d3..ae4dc7f0 100644
--- a/crates/externref-xform/Cargo.toml
+++ b/crates/externref-xform/Cargo.toml
@@ -24,6 +24,9 @@ wasmprinter = "0.214"
 wast = "214"
 wat = "1.0"
 
+[lints]
+workspace = true
+
 [[test]]
 harness = false
 name = "all"
diff --git a/crates/futures/Cargo.toml b/crates/futures/Cargo.toml
index 6e4c8e19..d748c4a1 100644
--- a/crates/futures/Cargo.toml
+++ b/crates/futures/Cargo.toml
@@ -38,3 +38,6 @@ version = "=0.3.72"
 futures-channel-preview = { version = "0.3.0-alpha.18" }
 futures-lite = { version = "1.11.3", default-features = false }
 wasm-bindgen-test = { path = '../test' }
+
+[lints]
+workspace = true
diff --git a/crates/js-sys/Cargo.toml b/crates/js-sys/Cargo.toml
index 16400a04..466598c4 100644
--- a/crates/js-sys/Cargo.toml
+++ b/crates/js-sys/Cargo.toml
@@ -34,3 +34,10 @@ web-sys = { path = "../web-sys", features = ["Headers", "Response", "ResponseIni
 
 [lints.rust]
 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(js_sys_unstable_apis)'] }
+
+[lints.clippy]
+large_enum_variant = "allow"
+new_without_default = "allow"
+overly_complex_bool_expr = "allow"
+too_many_arguments = "allow"
+type_complexity = "allow"
diff --git a/crates/macro-support/Cargo.toml b/crates/macro-support/Cargo.toml
index 61ce9c2b..f9f024ac 100644
--- a/crates/macro-support/Cargo.toml
+++ b/crates/macro-support/Cargo.toml
@@ -28,3 +28,6 @@ quote = '1.0'
 syn = { version = '2.0', features = ['visit', 'visit-mut', 'full'] }
 wasm-bindgen-backend = { path = "../backend", version = "=0.2.95", default-features = false }
 wasm-bindgen-shared = { path = "../shared", version = "=0.2.95" }
+
+[lints]
+workspace = true
diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml
index d2b699ff..bf6c7690 100644
--- a/crates/macro/Cargo.toml
+++ b/crates/macro/Cargo.toml
@@ -35,3 +35,6 @@ trybuild = "1.0"
 wasm-bindgen = { path = "../.." }
 wasm-bindgen-futures = { path = "../futures" }
 web-sys = { path = "../web-sys", features = ["Worker"] }
+
+[lints]
+workspace = true
diff --git a/crates/multi-value-xform/Cargo.toml b/crates/multi-value-xform/Cargo.toml
index 50a5098e..05d176cf 100644
--- a/crates/multi-value-xform/Cargo.toml
+++ b/crates/multi-value-xform/Cargo.toml
@@ -24,6 +24,9 @@ wasmprinter = "0.214"
 wast = "214"
 wat = "1.0"
 
+[lints]
+workspace = true
+
 [[test]]
 harness = false
 name = "all"
diff --git a/crates/shared/Cargo.toml b/crates/shared/Cargo.toml
index 2e5fe6b1..3cc734b7 100644
--- a/crates/shared/Cargo.toml
+++ b/crates/shared/Cargo.toml
@@ -18,3 +18,6 @@ version = "0.2.95"
 # graph, pretend we link a native library so that `cargo` will provide better
 # error messages than the esoteric linker errors we would otherwise trigger.
 links = "wasm_bindgen"
+
+[lints]
+workspace = true
diff --git a/crates/threads-xform/Cargo.toml b/crates/threads-xform/Cargo.toml
index 0658efb8..b65754be 100644
--- a/crates/threads-xform/Cargo.toml
+++ b/crates/threads-xform/Cargo.toml
@@ -24,6 +24,9 @@ wasmparser = "0.214"
 wasmprinter = "0.214"
 wat = "1.0"
 
+[lints]
+workspace = true
+
 [[test]]
 harness = false
 name = "all"
diff --git a/crates/wasm-conventions/Cargo.toml b/crates/wasm-conventions/Cargo.toml
index f721e225..66ec85f8 100644
--- a/crates/wasm-conventions/Cargo.toml
+++ b/crates/wasm-conventions/Cargo.toml
@@ -18,3 +18,6 @@ walrus = "0.23"
 anyhow = "1.0"
 log = "0.4"
 wasmparser = "0.212"
+
+[lints]
+workspace = true
diff --git a/crates/wasm-interpreter/Cargo.toml b/crates/wasm-interpreter/Cargo.toml
index abffcf6d..8c5f1b1d 100644
--- a/crates/wasm-interpreter/Cargo.toml
+++ b/crates/wasm-interpreter/Cargo.toml
@@ -22,3 +22,6 @@ wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "0.2.9
 [dev-dependencies]
 tempfile = "3"
 wat = "1.0"
+
+[lints]
+workspace = true
diff --git a/crates/web-sys/Cargo.toml b/crates/web-sys/Cargo.toml
index e3ddae0c..52551c61 100644
--- a/crates/web-sys/Cargo.toml
+++ b/crates/web-sys/Cargo.toml
@@ -34,6 +34,13 @@ wasm-bindgen-test = { path = '../test' }
 [lints.rust]
 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] }
 
+[lints.clippy]
+large_enum_variant = "allow"
+new_without_default = "allow"
+overly_complex_bool_expr = "allow"
+too_many_arguments = "allow"
+type_complexity = "allow"
+
 # This list is auto-generated by the wasm-bindgen-webidl program
 [features]
 default = ["std"]
@@ -513,6 +520,8 @@ GpuComputePassEncoder = []
 GpuComputePassTimestampWrites = []
 GpuComputePipeline = []
 GpuComputePipelineDescriptor = []
+GpuCopyExternalImageDestInfo = []
+GpuCopyExternalImageSourceInfo = []
 GpuCullMode = []
 GpuDepthStencilState = []
 GpuDevice = ["EventTarget"]
@@ -529,11 +538,6 @@ GpuFeatureName = []
 GpuFilterMode = []
 GpuFragmentState = []
 GpuFrontFace = []
-GpuImageCopyBuffer = []
-GpuImageCopyExternalImage = []
-GpuImageCopyTexture = []
-GpuImageCopyTextureTagged = []
-GpuImageDataLayout = []
 GpuIndexFormat = []
 GpuInternalError = ["GpuError"]
 GpuLoadOp = []
@@ -585,6 +589,9 @@ GpuStorageTextureBindingLayout = []
 GpuStoreOp = []
 GpuSupportedFeatures = []
 GpuSupportedLimits = []
+GpuTexelCopyBufferInfo = []
+GpuTexelCopyBufferLayout = []
+GpuTexelCopyTextureInfo = []
 GpuTexture = []
 GpuTextureAspect = []
 GpuTextureBindingLayout = []
diff --git a/crates/web-sys/src/features/gen_GpuCommandEncoder.rs b/crates/web-sys/src/features/gen_GpuCommandEncoder.rs
index 7fb2fb75..426b5944 100644
--- a/crates/web-sys/src/features/gen_GpuCommandEncoder.rs
+++ b/crates/web-sys/src/features/gen_GpuCommandEncoder.rs
@@ -189,7 +189,7 @@ extern "C" {
     );
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
-    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
+    # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
     #[doc = "The `copyBufferToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
@@ -205,10 +205,10 @@ extern "C" {
         destination: &GpuBuffer,
         destination_offset: u32,
         size: u32,
-    );
+    ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
-    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
+    # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
     #[doc = "The `copyBufferToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
@@ -224,10 +224,10 @@ extern "C" {
         destination: &GpuBuffer,
         destination_offset: u32,
         size: u32,
-    );
+    ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
-    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
+    # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
     #[doc = "The `copyBufferToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
@@ -243,10 +243,10 @@ extern "C" {
         destination: &GpuBuffer,
         destination_offset: f64,
         size: u32,
-    );
+    ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
-    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
+    # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
     #[doc = "The `copyBufferToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
@@ -262,10 +262,10 @@ extern "C" {
         destination: &GpuBuffer,
         destination_offset: f64,
         size: u32,
-    );
+    ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
-    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
+    # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
     #[doc = "The `copyBufferToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
@@ -281,10 +281,10 @@ extern "C" {
         destination: &GpuBuffer,
         destination_offset: u32,
         size: f64,
-    );
+    ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
-    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
+    # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
     #[doc = "The `copyBufferToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
@@ -300,10 +300,10 @@ extern "C" {
         destination: &GpuBuffer,
         destination_offset: u32,
         size: f64,
-    );
+    ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
-    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
+    # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
     #[doc = "The `copyBufferToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
@@ -319,10 +319,10 @@ extern "C" {
         destination: &GpuBuffer,
         destination_offset: f64,
         size: f64,
-    );
+    ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
-    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
+    # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
     #[doc = "The `copyBufferToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
@@ -338,115 +338,121 @@ extern "C" {
         destination: &GpuBuffer,
         destination_offset: f64,
         size: f64,
-    );
+    ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
-    #[cfg(all(feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture",))]
+    #[cfg(all(
+        feature = "GpuTexelCopyBufferInfo",
+        feature = "GpuTexelCopyTextureInfo",
+    ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)]
     #[doc = "The `copyBufferToTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn copy_buffer_to_texture_with_u32_sequence(
         this: &GpuCommandEncoder,
-        source: &GpuImageCopyBuffer,
-        destination: &GpuImageCopyTexture,
+        source: &GpuTexelCopyBufferInfo,
+        destination: &GpuTexelCopyTextureInfo,
         copy_size: &::wasm_bindgen::JsValue,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(all(
         feature = "GpuExtent3dDict",
-        feature = "GpuImageCopyBuffer",
-        feature = "GpuImageCopyTexture",
+        feature = "GpuTexelCopyBufferInfo",
+        feature = "GpuTexelCopyTextureInfo",
     ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)]
     #[doc = "The `copyBufferToTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict(
         this: &GpuCommandEncoder,
-        source: &GpuImageCopyBuffer,
-        destination: &GpuImageCopyTexture,
+        source: &GpuTexelCopyBufferInfo,
+        destination: &GpuTexelCopyTextureInfo,
         copy_size: &GpuExtent3dDict,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
-    #[cfg(all(feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture",))]
+    #[cfg(all(
+        feature = "GpuTexelCopyBufferInfo",
+        feature = "GpuTexelCopyTextureInfo",
+    ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)]
     #[doc = "The `copyTextureToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn copy_texture_to_buffer_with_u32_sequence(
         this: &GpuCommandEncoder,
-        source: &GpuImageCopyTexture,
-        destination: &GpuImageCopyBuffer,
+        source: &GpuTexelCopyTextureInfo,
+        destination: &GpuTexelCopyBufferInfo,
         copy_size: &::wasm_bindgen::JsValue,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(all(
         feature = "GpuExtent3dDict",
-        feature = "GpuImageCopyBuffer",
-        feature = "GpuImageCopyTexture",
+        feature = "GpuTexelCopyBufferInfo",
+        feature = "GpuTexelCopyTextureInfo",
     ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)]
     #[doc = "The `copyTextureToBuffer()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict(
         this: &GpuCommandEncoder,
-        source: &GpuImageCopyTexture,
-        destination: &GpuImageCopyBuffer,
+        source: &GpuTexelCopyTextureInfo,
+        destination: &GpuTexelCopyBufferInfo,
         copy_size: &GpuExtent3dDict,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
-    #[cfg(feature = "GpuImageCopyTexture")]
+    #[cfg(feature = "GpuTexelCopyTextureInfo")]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)]
     #[doc = "The `copyTextureToTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn copy_texture_to_texture_with_u32_sequence(
         this: &GpuCommandEncoder,
-        source: &GpuImageCopyTexture,
-        destination: &GpuImageCopyTexture,
+        source: &GpuTexelCopyTextureInfo,
+        destination: &GpuTexelCopyTextureInfo,
         copy_size: &::wasm_bindgen::JsValue,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
-    #[cfg(all(feature = "GpuExtent3dDict", feature = "GpuImageCopyTexture",))]
+    #[cfg(all(feature = "GpuExtent3dDict", feature = "GpuTexelCopyTextureInfo",))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)]
     #[doc = "The `copyTextureToTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn copy_texture_to_texture_with_gpu_extent_3d_dict(
         this: &GpuCommandEncoder,
-        source: &GpuImageCopyTexture,
-        destination: &GpuImageCopyTexture,
+        source: &GpuTexelCopyTextureInfo,
+        destination: &GpuTexelCopyTextureInfo,
         copy_size: &GpuExtent3dDict,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
diff --git a/crates/web-sys/src/features/gen_GpuImageCopyTextureTagged.rs b/crates/web-sys/src/features/gen_GpuCopyExternalImageDestInfo.rs
similarity index 80%
rename from crates/web-sys/src/features/gen_GpuImageCopyTextureTagged.rs
rename to crates/web-sys/src/features/gen_GpuCopyExternalImageDestInfo.rs
index d0cc4179..8233e356 100644
--- a/crates/web-sys/src/features/gen_GpuImageCopyTextureTagged.rs
+++ b/crates/web-sys/src/features/gen_GpuCopyExternalImageDestInfo.rs
@@ -5,116 +5,116 @@ use wasm_bindgen::prelude::*;
 #[cfg(web_sys_unstable_apis)]
 #[wasm_bindgen]
 extern "C" {
-    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyTextureTagged)]
+    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCopyExternalImageDestInfo)]
     #[derive(Debug, Clone, PartialEq, Eq)]
-    #[doc = "The `GpuImageCopyTextureTagged` dictionary."]
+    #[doc = "The `GpuCopyExternalImageDestInfo` dictionary."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
-    pub type GpuImageCopyTextureTagged;
+    pub type GpuCopyExternalImageDestInfo;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuTextureAspect")]
     #[doc = "Get the `aspect` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTextureAspect`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTextureAspect`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "aspect")]
-    pub fn get_aspect(this: &GpuImageCopyTextureTagged) -> Option<GpuTextureAspect>;
+    pub fn get_aspect(this: &GpuCopyExternalImageDestInfo) -> Option<GpuTextureAspect>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuTextureAspect")]
     #[doc = "Change the `aspect` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTextureAspect`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTextureAspect`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "aspect")]
-    pub fn set_aspect(this: &GpuImageCopyTextureTagged, val: GpuTextureAspect);
+    pub fn set_aspect(this: &GpuCopyExternalImageDestInfo, val: GpuTextureAspect);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `mipLevel` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "mipLevel")]
-    pub fn get_mip_level(this: &GpuImageCopyTextureTagged) -> Option<u32>;
+    pub fn get_mip_level(this: &GpuCopyExternalImageDestInfo) -> Option<u32>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `mipLevel` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "mipLevel")]
-    pub fn set_mip_level(this: &GpuImageCopyTextureTagged, val: u32);
+    pub fn set_mip_level(this: &GpuCopyExternalImageDestInfo, val: u32);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `origin` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "origin")]
-    pub fn get_origin(this: &GpuImageCopyTextureTagged) -> ::wasm_bindgen::JsValue;
+    pub fn get_origin(this: &GpuCopyExternalImageDestInfo) -> ::wasm_bindgen::JsValue;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `origin` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "origin")]
-    pub fn set_origin(this: &GpuImageCopyTextureTagged, val: &::wasm_bindgen::JsValue);
+    pub fn set_origin(this: &GpuCopyExternalImageDestInfo, val: &::wasm_bindgen::JsValue);
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuTexture")]
     #[doc = "Get the `texture` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTexture`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "texture")]
-    pub fn get_texture(this: &GpuImageCopyTextureTagged) -> GpuTexture;
+    pub fn get_texture(this: &GpuCopyExternalImageDestInfo) -> GpuTexture;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuTexture")]
     #[doc = "Change the `texture` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTexture`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "texture")]
-    pub fn set_texture(this: &GpuImageCopyTextureTagged, val: &GpuTexture);
+    pub fn set_texture(this: &GpuCopyExternalImageDestInfo, val: &GpuTexture);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `premultipliedAlpha` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "premultipliedAlpha")]
-    pub fn get_premultiplied_alpha(this: &GpuImageCopyTextureTagged) -> Option<bool>;
+    pub fn get_premultiplied_alpha(this: &GpuCopyExternalImageDestInfo) -> Option<bool>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `premultipliedAlpha` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "premultipliedAlpha")]
-    pub fn set_premultiplied_alpha(this: &GpuImageCopyTextureTagged, val: bool);
+    pub fn set_premultiplied_alpha(this: &GpuCopyExternalImageDestInfo, val: bool);
 }
 #[cfg(web_sys_unstable_apis)]
-impl GpuImageCopyTextureTagged {
+impl GpuCopyExternalImageDestInfo {
     #[cfg(feature = "GpuTexture")]
-    #[doc = "Construct a new `GpuImageCopyTextureTagged`."]
+    #[doc = "Construct a new `GpuCopyExternalImageDestInfo`."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuTexture`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
diff --git a/crates/web-sys/src/features/gen_GpuImageCopyExternalImage.rs b/crates/web-sys/src/features/gen_GpuCopyExternalImageSourceInfo.rs
similarity index 79%
rename from crates/web-sys/src/features/gen_GpuImageCopyExternalImage.rs
rename to crates/web-sys/src/features/gen_GpuCopyExternalImageSourceInfo.rs
index c471c154..6e1ed36f 100644
--- a/crates/web-sys/src/features/gen_GpuImageCopyExternalImage.rs
+++ b/crates/web-sys/src/features/gen_GpuCopyExternalImageSourceInfo.rs
@@ -5,75 +5,75 @@ use wasm_bindgen::prelude::*;
 #[cfg(web_sys_unstable_apis)]
 #[wasm_bindgen]
 extern "C" {
-    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyExternalImage)]
+    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCopyExternalImageSourceInfo)]
     #[derive(Debug, Clone, PartialEq, Eq)]
-    #[doc = "The `GpuImageCopyExternalImage` dictionary."]
+    #[doc = "The `GpuCopyExternalImageSourceInfo` dictionary."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
-    pub type GpuImageCopyExternalImage;
+    pub type GpuCopyExternalImageSourceInfo;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `flipY` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "flipY")]
-    pub fn get_flip_y(this: &GpuImageCopyExternalImage) -> Option<bool>;
+    pub fn get_flip_y(this: &GpuCopyExternalImageSourceInfo) -> Option<bool>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `flipY` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "flipY")]
-    pub fn set_flip_y(this: &GpuImageCopyExternalImage, val: bool);
+    pub fn set_flip_y(this: &GpuCopyExternalImageSourceInfo, val: bool);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `origin` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "origin")]
-    pub fn get_origin(this: &GpuImageCopyExternalImage) -> ::wasm_bindgen::JsValue;
+    pub fn get_origin(this: &GpuCopyExternalImageSourceInfo) -> ::wasm_bindgen::JsValue;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `origin` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "origin")]
-    pub fn set_origin(this: &GpuImageCopyExternalImage, val: &::wasm_bindgen::JsValue);
+    pub fn set_origin(this: &GpuCopyExternalImageSourceInfo, val: &::wasm_bindgen::JsValue);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `source` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "source")]
-    pub fn get_source(this: &GpuImageCopyExternalImage) -> ::js_sys::Object;
+    pub fn get_source(this: &GpuCopyExternalImageSourceInfo) -> ::js_sys::Object;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `source` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "source")]
-    pub fn set_source(this: &GpuImageCopyExternalImage, val: &::js_sys::Object);
+    pub fn set_source(this: &GpuCopyExternalImageSourceInfo, val: &::js_sys::Object);
 }
 #[cfg(web_sys_unstable_apis)]
-impl GpuImageCopyExternalImage {
-    #[doc = "Construct a new `GpuImageCopyExternalImage`."]
+impl GpuCopyExternalImageSourceInfo {
+    #[doc = "Construct a new `GpuCopyExternalImageSourceInfo`."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
diff --git a/crates/web-sys/src/features/gen_GpuDevice.rs b/crates/web-sys/src/features/gen_GpuDevice.rs
index 5ad2483b..eadade16 100644
--- a/crates/web-sys/src/features/gen_GpuDevice.rs
+++ b/crates/web-sys/src/features/gen_GpuDevice.rs
@@ -41,6 +41,18 @@ extern "C" {
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn limits(this: &GpuDevice) -> GpuSupportedLimits;
     #[cfg(web_sys_unstable_apis)]
+    #[cfg(feature = "GpuAdapterInfo")]
+    # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = adapterInfo)]
+    #[doc = "Getter for the `adapterInfo` field of this object."]
+    #[doc = ""]
+    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/adapterInfo)"]
+    #[doc = ""]
+    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`, `GpuDevice`*"]
+    #[doc = ""]
+    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+    pub fn adapter_info(this: &GpuDevice) -> GpuAdapterInfo;
+    #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuQueue")]
     # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = queue)]
     #[doc = "Getter for the `queue` field of this object."]
diff --git a/crates/web-sys/src/features/gen_GpuFeatureName.rs b/crates/web-sys/src/features/gen_GpuFeatureName.rs
index 4f30f434..b4bbf30a 100644
--- a/crates/web-sys/src/features/gen_GpuFeatureName.rs
+++ b/crates/web-sys/src/features/gen_GpuFeatureName.rs
@@ -24,6 +24,7 @@ pub enum GpuFeatureName {
     Rg11b10ufloatRenderable = "rg11b10ufloat-renderable",
     Bgra8unormStorage = "bgra8unorm-storage",
     Float32Filterable = "float32-filterable",
+    Float32Blendable = "float32-blendable",
     ClipDistances = "clip-distances",
     DualSourceBlending = "dual-source-blending",
 }
diff --git a/crates/web-sys/src/features/gen_GpuQueue.rs b/crates/web-sys/src/features/gen_GpuQueue.rs
index e33c2394..70087a2f 100644
--- a/crates/web-sys/src/features/gen_GpuQueue.rs
+++ b/crates/web-sys/src/features/gen_GpuQueue.rs
@@ -40,43 +40,43 @@ extern "C" {
     pub fn set_label(this: &GpuQueue, value: &str);
     #[cfg(web_sys_unstable_apis)]
     #[cfg(all(
-        feature = "GpuImageCopyExternalImage",
-        feature = "GpuImageCopyTextureTagged",
+        feature = "GpuCopyExternalImageDestInfo",
+        feature = "GpuCopyExternalImageSourceInfo",
     ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)]
     #[doc = "The `copyExternalImageToTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`, `GpuImageCopyTextureTagged`, `GpuQueue`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuCopyExternalImageSourceInfo`, `GpuQueue`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn copy_external_image_to_texture_with_u32_sequence(
         this: &GpuQueue,
-        source: &GpuImageCopyExternalImage,
-        destination: &GpuImageCopyTextureTagged,
+        source: &GpuCopyExternalImageSourceInfo,
+        destination: &GpuCopyExternalImageDestInfo,
         copy_size: &::wasm_bindgen::JsValue,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(all(
+        feature = "GpuCopyExternalImageDestInfo",
+        feature = "GpuCopyExternalImageSourceInfo",
         feature = "GpuExtent3dDict",
-        feature = "GpuImageCopyExternalImage",
-        feature = "GpuImageCopyTextureTagged",
     ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)]
     #[doc = "The `copyExternalImageToTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyExternalImage`, `GpuImageCopyTextureTagged`, `GpuQueue`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuCopyExternalImageSourceInfo`, `GpuExtent3dDict`, `GpuQueue`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn copy_external_image_to_texture_with_gpu_extent_3d_dict(
         this: &GpuQueue,
-        source: &GpuImageCopyExternalImage,
-        destination: &GpuImageCopyTextureTagged,
+        source: &GpuCopyExternalImageSourceInfo,
+        destination: &GpuCopyExternalImageDestInfo,
         copy_size: &GpuExtent3dDict,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
@@ -876,123 +876,132 @@ extern "C" {
         size: f64,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
-    #[cfg(all(feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout",))]
+    #[cfg(all(
+        feature = "GpuTexelCopyBufferLayout",
+        feature = "GpuTexelCopyTextureInfo",
+    ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
     #[doc = "The `writeTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn write_texture_with_buffer_source_and_u32_sequence(
         this: &GpuQueue,
-        destination: &GpuImageCopyTexture,
+        destination: &GpuTexelCopyTextureInfo,
         data: &::js_sys::Object,
-        data_layout: &GpuImageDataLayout,
+        data_layout: &GpuTexelCopyBufferLayout,
         size: &::wasm_bindgen::JsValue,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
-    #[cfg(all(feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout",))]
+    #[cfg(all(
+        feature = "GpuTexelCopyBufferLayout",
+        feature = "GpuTexelCopyTextureInfo",
+    ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
     #[doc = "The `writeTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn write_texture_with_u8_slice_and_u32_sequence(
         this: &GpuQueue,
-        destination: &GpuImageCopyTexture,
+        destination: &GpuTexelCopyTextureInfo,
         data: &[u8],
-        data_layout: &GpuImageDataLayout,
+        data_layout: &GpuTexelCopyBufferLayout,
         size: &::wasm_bindgen::JsValue,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
-    #[cfg(all(feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout",))]
+    #[cfg(all(
+        feature = "GpuTexelCopyBufferLayout",
+        feature = "GpuTexelCopyTextureInfo",
+    ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
     #[doc = "The `writeTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn write_texture_with_u8_array_and_u32_sequence(
         this: &GpuQueue,
-        destination: &GpuImageCopyTexture,
+        destination: &GpuTexelCopyTextureInfo,
         data: &::js_sys::Uint8Array,
-        data_layout: &GpuImageDataLayout,
+        data_layout: &GpuTexelCopyBufferLayout,
         size: &::wasm_bindgen::JsValue,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(all(
         feature = "GpuExtent3dDict",
-        feature = "GpuImageCopyTexture",
-        feature = "GpuImageDataLayout",
+        feature = "GpuTexelCopyBufferLayout",
+        feature = "GpuTexelCopyTextureInfo",
     ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
     #[doc = "The `writeTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn write_texture_with_buffer_source_and_gpu_extent_3d_dict(
         this: &GpuQueue,
-        destination: &GpuImageCopyTexture,
+        destination: &GpuTexelCopyTextureInfo,
         data: &::js_sys::Object,
-        data_layout: &GpuImageDataLayout,
+        data_layout: &GpuTexelCopyBufferLayout,
         size: &GpuExtent3dDict,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(all(
         feature = "GpuExtent3dDict",
-        feature = "GpuImageCopyTexture",
-        feature = "GpuImageDataLayout",
+        feature = "GpuTexelCopyBufferLayout",
+        feature = "GpuTexelCopyTextureInfo",
     ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
     #[doc = "The `writeTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn write_texture_with_u8_slice_and_gpu_extent_3d_dict(
         this: &GpuQueue,
-        destination: &GpuImageCopyTexture,
+        destination: &GpuTexelCopyTextureInfo,
         data: &[u8],
-        data_layout: &GpuImageDataLayout,
+        data_layout: &GpuTexelCopyBufferLayout,
         size: &GpuExtent3dDict,
     ) -> Result<(), JsValue>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(all(
         feature = "GpuExtent3dDict",
-        feature = "GpuImageCopyTexture",
-        feature = "GpuImageDataLayout",
+        feature = "GpuTexelCopyBufferLayout",
+        feature = "GpuTexelCopyTextureInfo",
     ))]
     # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
     #[doc = "The `writeTexture()` method."]
     #[doc = ""]
     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     pub fn write_texture_with_u8_array_and_gpu_extent_3d_dict(
         this: &GpuQueue,
-        destination: &GpuImageCopyTexture,
+        destination: &GpuTexelCopyTextureInfo,
         data: &::js_sys::Uint8Array,
-        data_layout: &GpuImageDataLayout,
+        data_layout: &GpuTexelCopyBufferLayout,
         size: &GpuExtent3dDict,
     ) -> Result<(), JsValue>;
 }
diff --git a/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs b/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs
index cba26922..9148d88b 100644
--- a/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs
+++ b/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs
@@ -70,6 +70,24 @@ extern "C" {
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "powerPreference")]
     pub fn set_power_preference(this: &GpuRequestAdapterOptions, val: GpuPowerPreference);
+    #[cfg(web_sys_unstable_apis)]
+    #[doc = "Get the `xrCompatible` field of this object."]
+    #[doc = ""]
+    #[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"]
+    #[doc = ""]
+    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+    #[wasm_bindgen(method, getter = "xrCompatible")]
+    pub fn get_xr_compatible(this: &GpuRequestAdapterOptions) -> Option<bool>;
+    #[cfg(web_sys_unstable_apis)]
+    #[doc = "Change the `xrCompatible` field of this object."]
+    #[doc = ""]
+    #[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"]
+    #[doc = ""]
+    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+    #[wasm_bindgen(method, setter = "xrCompatible")]
+    pub fn set_xr_compatible(this: &GpuRequestAdapterOptions, val: bool);
 }
 #[cfg(web_sys_unstable_apis)]
 impl GpuRequestAdapterOptions {
@@ -103,6 +121,12 @@ impl GpuRequestAdapterOptions {
         self.set_power_preference(val);
         self
     }
+    #[cfg(web_sys_unstable_apis)]
+    #[deprecated = "Use `set_xr_compatible()` instead."]
+    pub fn xr_compatible(&mut self, val: bool) -> &mut Self {
+        self.set_xr_compatible(val);
+        self
+    }
 }
 #[cfg(web_sys_unstable_apis)]
 impl Default for GpuRequestAdapterOptions {
diff --git a/crates/web-sys/src/features/gen_GpuImageCopyBuffer.rs b/crates/web-sys/src/features/gen_GpuTexelCopyBufferInfo.rs
similarity index 82%
rename from crates/web-sys/src/features/gen_GpuImageCopyBuffer.rs
rename to crates/web-sys/src/features/gen_GpuTexelCopyBufferInfo.rs
index 153b4004..a950be4a 100644
--- a/crates/web-sys/src/features/gen_GpuImageCopyBuffer.rs
+++ b/crates/web-sys/src/features/gen_GpuTexelCopyBufferInfo.rs
@@ -5,96 +5,96 @@ use wasm_bindgen::prelude::*;
 #[cfg(web_sys_unstable_apis)]
 #[wasm_bindgen]
 extern "C" {
-    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyBuffer)]
+    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexelCopyBufferInfo)]
     #[derive(Debug, Clone, PartialEq, Eq)]
-    #[doc = "The `GpuImageCopyBuffer` dictionary."]
+    #[doc = "The `GpuTexelCopyBufferInfo` dictionary."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
-    pub type GpuImageCopyBuffer;
+    pub type GpuTexelCopyBufferInfo;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `bytesPerRow` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "bytesPerRow")]
-    pub fn get_bytes_per_row(this: &GpuImageCopyBuffer) -> Option<u32>;
+    pub fn get_bytes_per_row(this: &GpuTexelCopyBufferInfo) -> Option<u32>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `bytesPerRow` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "bytesPerRow")]
-    pub fn set_bytes_per_row(this: &GpuImageCopyBuffer, val: u32);
+    pub fn set_bytes_per_row(this: &GpuTexelCopyBufferInfo, val: u32);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `offset` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "offset")]
-    pub fn get_offset(this: &GpuImageCopyBuffer) -> Option<f64>;
+    pub fn get_offset(this: &GpuTexelCopyBufferInfo) -> Option<f64>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `offset` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "offset")]
-    pub fn set_offset(this: &GpuImageCopyBuffer, val: f64);
+    pub fn set_offset(this: &GpuTexelCopyBufferInfo, val: f64);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `rowsPerImage` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "rowsPerImage")]
-    pub fn get_rows_per_image(this: &GpuImageCopyBuffer) -> Option<u32>;
+    pub fn get_rows_per_image(this: &GpuTexelCopyBufferInfo) -> Option<u32>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `rowsPerImage` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "rowsPerImage")]
-    pub fn set_rows_per_image(this: &GpuImageCopyBuffer, val: u32);
+    pub fn set_rows_per_image(this: &GpuTexelCopyBufferInfo, val: u32);
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
     #[doc = "Get the `buffer` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "buffer")]
-    pub fn get_buffer(this: &GpuImageCopyBuffer) -> GpuBuffer;
+    pub fn get_buffer(this: &GpuTexelCopyBufferInfo) -> GpuBuffer;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuBuffer")]
     #[doc = "Change the `buffer` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "buffer")]
-    pub fn set_buffer(this: &GpuImageCopyBuffer, val: &GpuBuffer);
+    pub fn set_buffer(this: &GpuTexelCopyBufferInfo, val: &GpuBuffer);
 }
 #[cfg(web_sys_unstable_apis)]
-impl GpuImageCopyBuffer {
+impl GpuTexelCopyBufferInfo {
     #[cfg(feature = "GpuBuffer")]
-    #[doc = "Construct a new `GpuImageCopyBuffer`."]
+    #[doc = "Construct a new `GpuTexelCopyBufferInfo`."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuImageCopyBuffer`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuTexelCopyBufferInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
diff --git a/crates/web-sys/src/features/gen_GpuImageDataLayout.rs b/crates/web-sys/src/features/gen_GpuTexelCopyBufferLayout.rs
similarity index 81%
rename from crates/web-sys/src/features/gen_GpuImageDataLayout.rs
rename to crates/web-sys/src/features/gen_GpuTexelCopyBufferLayout.rs
index c0ecc701..20d52299 100644
--- a/crates/web-sys/src/features/gen_GpuImageDataLayout.rs
+++ b/crates/web-sys/src/features/gen_GpuTexelCopyBufferLayout.rs
@@ -5,75 +5,75 @@ use wasm_bindgen::prelude::*;
 #[cfg(web_sys_unstable_apis)]
 #[wasm_bindgen]
 extern "C" {
-    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageDataLayout)]
+    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexelCopyBufferLayout)]
     #[derive(Debug, Clone, PartialEq, Eq)]
-    #[doc = "The `GpuImageDataLayout` dictionary."]
+    #[doc = "The `GpuTexelCopyBufferLayout` dictionary."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
-    pub type GpuImageDataLayout;
+    pub type GpuTexelCopyBufferLayout;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `bytesPerRow` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "bytesPerRow")]
-    pub fn get_bytes_per_row(this: &GpuImageDataLayout) -> Option<u32>;
+    pub fn get_bytes_per_row(this: &GpuTexelCopyBufferLayout) -> Option<u32>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `bytesPerRow` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "bytesPerRow")]
-    pub fn set_bytes_per_row(this: &GpuImageDataLayout, val: u32);
+    pub fn set_bytes_per_row(this: &GpuTexelCopyBufferLayout, val: u32);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `offset` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "offset")]
-    pub fn get_offset(this: &GpuImageDataLayout) -> Option<f64>;
+    pub fn get_offset(this: &GpuTexelCopyBufferLayout) -> Option<f64>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `offset` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "offset")]
-    pub fn set_offset(this: &GpuImageDataLayout, val: f64);
+    pub fn set_offset(this: &GpuTexelCopyBufferLayout, val: f64);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `rowsPerImage` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "rowsPerImage")]
-    pub fn get_rows_per_image(this: &GpuImageDataLayout) -> Option<u32>;
+    pub fn get_rows_per_image(this: &GpuTexelCopyBufferLayout) -> Option<u32>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `rowsPerImage` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "rowsPerImage")]
-    pub fn set_rows_per_image(this: &GpuImageDataLayout, val: u32);
+    pub fn set_rows_per_image(this: &GpuTexelCopyBufferLayout, val: u32);
 }
 #[cfg(web_sys_unstable_apis)]
-impl GpuImageDataLayout {
-    #[doc = "Construct a new `GpuImageDataLayout`."]
+impl GpuTexelCopyBufferLayout {
+    #[doc = "Construct a new `GpuTexelCopyBufferLayout`."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
@@ -102,7 +102,7 @@ impl GpuImageDataLayout {
     }
 }
 #[cfg(web_sys_unstable_apis)]
-impl Default for GpuImageDataLayout {
+impl Default for GpuTexelCopyBufferLayout {
     fn default() -> Self {
         Self::new()
     }
diff --git a/crates/web-sys/src/features/gen_GpuImageCopyTexture.rs b/crates/web-sys/src/features/gen_GpuTexelCopyTextureInfo.rs
similarity index 81%
rename from crates/web-sys/src/features/gen_GpuImageCopyTexture.rs
rename to crates/web-sys/src/features/gen_GpuTexelCopyTextureInfo.rs
index 96b81683..b57011e6 100644
--- a/crates/web-sys/src/features/gen_GpuImageCopyTexture.rs
+++ b/crates/web-sys/src/features/gen_GpuTexelCopyTextureInfo.rs
@@ -5,98 +5,98 @@ use wasm_bindgen::prelude::*;
 #[cfg(web_sys_unstable_apis)]
 #[wasm_bindgen]
 extern "C" {
-    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyTexture)]
+    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexelCopyTextureInfo)]
     #[derive(Debug, Clone, PartialEq, Eq)]
-    #[doc = "The `GpuImageCopyTexture` dictionary."]
+    #[doc = "The `GpuTexelCopyTextureInfo` dictionary."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
-    pub type GpuImageCopyTexture;
+    pub type GpuTexelCopyTextureInfo;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuTextureAspect")]
     #[doc = "Get the `aspect` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuTextureAspect`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`, `GpuTextureAspect`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "aspect")]
-    pub fn get_aspect(this: &GpuImageCopyTexture) -> Option<GpuTextureAspect>;
+    pub fn get_aspect(this: &GpuTexelCopyTextureInfo) -> Option<GpuTextureAspect>;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuTextureAspect")]
     #[doc = "Change the `aspect` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuTextureAspect`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`, `GpuTextureAspect`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "aspect")]
-    pub fn set_aspect(this: &GpuImageCopyTexture, val: GpuTextureAspect);
+    pub fn set_aspect(this: &GpuTexelCopyTextureInfo, val: GpuTextureAspect);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `mipLevel` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "mipLevel")]
-    pub fn get_mip_level(this: &GpuImageCopyTexture) -> Option<u32>;
+    pub fn get_mip_level(this: &GpuTexelCopyTextureInfo) -> Option<u32>;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `mipLevel` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "mipLevel")]
-    pub fn set_mip_level(this: &GpuImageCopyTexture, val: u32);
+    pub fn set_mip_level(this: &GpuTexelCopyTextureInfo, val: u32);
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Get the `origin` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "origin")]
-    pub fn get_origin(this: &GpuImageCopyTexture) -> ::wasm_bindgen::JsValue;
+    pub fn get_origin(this: &GpuTexelCopyTextureInfo) -> ::wasm_bindgen::JsValue;
     #[cfg(web_sys_unstable_apis)]
     #[doc = "Change the `origin` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "origin")]
-    pub fn set_origin(this: &GpuImageCopyTexture, val: &::wasm_bindgen::JsValue);
+    pub fn set_origin(this: &GpuTexelCopyTextureInfo, val: &::wasm_bindgen::JsValue);
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuTexture")]
     #[doc = "Get the `texture` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`, `GpuTexture`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, getter = "texture")]
-    pub fn get_texture(this: &GpuImageCopyTexture) -> GpuTexture;
+    pub fn get_texture(this: &GpuTexelCopyTextureInfo) -> GpuTexture;
     #[cfg(web_sys_unstable_apis)]
     #[cfg(feature = "GpuTexture")]
     #[doc = "Change the `texture` field of this object."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`, `GpuTexture`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
     #[wasm_bindgen(method, setter = "texture")]
-    pub fn set_texture(this: &GpuImageCopyTexture, val: &GpuTexture);
+    pub fn set_texture(this: &GpuTexelCopyTextureInfo, val: &GpuTexture);
 }
 #[cfg(web_sys_unstable_apis)]
-impl GpuImageCopyTexture {
+impl GpuTexelCopyTextureInfo {
     #[cfg(feature = "GpuTexture")]
-    #[doc = "Construct a new `GpuImageCopyTexture`."]
+    #[doc = "Construct a new `GpuTexelCopyTextureInfo`."]
     #[doc = ""]
-    #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuTexture`*"]
+    #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`, `GpuTexture`*"]
     #[doc = ""]
     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
diff --git a/crates/web-sys/src/features/gen_GpuVertexFormat.rs b/crates/web-sys/src/features/gen_GpuVertexFormat.rs
index 783adc53..9c380d45 100644
--- a/crates/web-sys/src/features/gen_GpuVertexFormat.rs
+++ b/crates/web-sys/src/features/gen_GpuVertexFormat.rs
@@ -11,22 +11,31 @@ use wasm_bindgen::prelude::*;
 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
 #[derive(Debug, Clone, Copy, PartialEq, Eq)]
 pub enum GpuVertexFormat {
+    Uint8 = "uint8",
     Uint8x2 = "uint8x2",
     Uint8x4 = "uint8x4",
+    Sint8 = "sint8",
     Sint8x2 = "sint8x2",
     Sint8x4 = "sint8x4",
+    Unorm8 = "unorm8",
     Unorm8x2 = "unorm8x2",
     Unorm8x4 = "unorm8x4",
+    Snorm8 = "snorm8",
     Snorm8x2 = "snorm8x2",
     Snorm8x4 = "snorm8x4",
+    Uint16 = "uint16",
     Uint16x2 = "uint16x2",
     Uint16x4 = "uint16x4",
+    Sint16 = "sint16",
     Sint16x2 = "sint16x2",
     Sint16x4 = "sint16x4",
+    Unorm16 = "unorm16",
     Unorm16x2 = "unorm16x2",
     Unorm16x4 = "unorm16x4",
+    Snorm16 = "snorm16",
     Snorm16x2 = "snorm16x2",
     Snorm16x4 = "snorm16x4",
+    Float16 = "float16",
     Float16x2 = "float16x2",
     Float16x4 = "float16x4",
     Float32 = "float32",
@@ -42,4 +51,5 @@ pub enum GpuVertexFormat {
     Sint32x3 = "sint32x3",
     Sint32x4 = "sint32x4",
     Unorm1010102 = "unorm10-10-10-2",
+    Unorm8x4Bgra = "unorm8x4-bgra",
 }
diff --git a/crates/web-sys/src/features/mod.rs b/crates/web-sys/src/features/mod.rs
index a22df048..4ffc9995 100644
--- a/crates/web-sys/src/features/mod.rs
+++ b/crates/web-sys/src/features/mod.rs
@@ -3323,6 +3323,20 @@ mod gen_GpuComputePipelineDescriptor;
 #[allow(unused_imports)]
 pub use gen_GpuComputePipelineDescriptor::*;
 
+#[cfg(feature = "GpuCopyExternalImageDestInfo")]
+#[allow(non_snake_case)]
+mod gen_GpuCopyExternalImageDestInfo;
+#[cfg(feature = "GpuCopyExternalImageDestInfo")]
+#[allow(unused_imports)]
+pub use gen_GpuCopyExternalImageDestInfo::*;
+
+#[cfg(feature = "GpuCopyExternalImageSourceInfo")]
+#[allow(non_snake_case)]
+mod gen_GpuCopyExternalImageSourceInfo;
+#[cfg(feature = "GpuCopyExternalImageSourceInfo")]
+#[allow(unused_imports)]
+pub use gen_GpuCopyExternalImageSourceInfo::*;
+
 #[cfg(feature = "GpuCullMode")]
 #[allow(non_snake_case)]
 mod gen_GpuCullMode;
@@ -3435,41 +3449,6 @@ mod gen_GpuFrontFace;
 #[allow(unused_imports)]
 pub use gen_GpuFrontFace::*;
 
-#[cfg(feature = "GpuImageCopyBuffer")]
-#[allow(non_snake_case)]
-mod gen_GpuImageCopyBuffer;
-#[cfg(feature = "GpuImageCopyBuffer")]
-#[allow(unused_imports)]
-pub use gen_GpuImageCopyBuffer::*;
-
-#[cfg(feature = "GpuImageCopyExternalImage")]
-#[allow(non_snake_case)]
-mod gen_GpuImageCopyExternalImage;
-#[cfg(feature = "GpuImageCopyExternalImage")]
-#[allow(unused_imports)]
-pub use gen_GpuImageCopyExternalImage::*;
-
-#[cfg(feature = "GpuImageCopyTexture")]
-#[allow(non_snake_case)]
-mod gen_GpuImageCopyTexture;
-#[cfg(feature = "GpuImageCopyTexture")]
-#[allow(unused_imports)]
-pub use gen_GpuImageCopyTexture::*;
-
-#[cfg(feature = "GpuImageCopyTextureTagged")]
-#[allow(non_snake_case)]
-mod gen_GpuImageCopyTextureTagged;
-#[cfg(feature = "GpuImageCopyTextureTagged")]
-#[allow(unused_imports)]
-pub use gen_GpuImageCopyTextureTagged::*;
-
-#[cfg(feature = "GpuImageDataLayout")]
-#[allow(non_snake_case)]
-mod gen_GpuImageDataLayout;
-#[cfg(feature = "GpuImageDataLayout")]
-#[allow(unused_imports)]
-pub use gen_GpuImageDataLayout::*;
-
 #[cfg(feature = "GpuIndexFormat")]
 #[allow(non_snake_case)]
 mod gen_GpuIndexFormat;
@@ -3827,6 +3806,27 @@ mod gen_GpuSupportedLimits;
 #[allow(unused_imports)]
 pub use gen_GpuSupportedLimits::*;
 
+#[cfg(feature = "GpuTexelCopyBufferInfo")]
+#[allow(non_snake_case)]
+mod gen_GpuTexelCopyBufferInfo;
+#[cfg(feature = "GpuTexelCopyBufferInfo")]
+#[allow(unused_imports)]
+pub use gen_GpuTexelCopyBufferInfo::*;
+
+#[cfg(feature = "GpuTexelCopyBufferLayout")]
+#[allow(non_snake_case)]
+mod gen_GpuTexelCopyBufferLayout;
+#[cfg(feature = "GpuTexelCopyBufferLayout")]
+#[allow(unused_imports)]
+pub use gen_GpuTexelCopyBufferLayout::*;
+
+#[cfg(feature = "GpuTexelCopyTextureInfo")]
+#[allow(non_snake_case)]
+mod gen_GpuTexelCopyTextureInfo;
+#[cfg(feature = "GpuTexelCopyTextureInfo")]
+#[allow(unused_imports)]
+pub use gen_GpuTexelCopyTextureInfo::*;
+
 #[cfg(feature = "GpuTexture")]
 #[allow(non_snake_case)]
 mod gen_GpuTexture;
diff --git a/crates/web-sys/webidls/unstable/WebGPU.webidl b/crates/web-sys/webidls/unstable/WebGPU.webidl
index c5b6912b..56e8130a 100644
--- a/crates/web-sys/webidls/unstable/WebGPU.webidl
+++ b/crates/web-sys/webidls/unstable/WebGPU.webidl
@@ -1,4 +1,4 @@
-// https://www.w3.org/TR/2024/WD-webgpu-20241007
+// https://www.w3.org/TR/2024/WD-webgpu-20241122/
 
 interface mixin GPUObjectBase {
     attribute USVString label;
@@ -75,9 +75,10 @@ interface GPU {
 };
 
 dictionary GPURequestAdapterOptions {
-    DOMString featureLevel;
+    DOMString featureLevel = "core";
     GPUPowerPreference powerPreference;
     boolean forceFallbackAdapter = false;
+    boolean xrCompatible = false;
 };
 
 enum GPUPowerPreference {
@@ -116,6 +117,7 @@ enum GPUFeatureName {
     "rg11b10ufloat-renderable",
     "bgra8unorm-storage",
     "float32-filterable",
+    "float32-blendable",
     "clip-distances",
     "dual-source-blending",
 };
@@ -124,6 +126,7 @@ enum GPUFeatureName {
 interface GPUDevice : EventTarget {
     [SameObject] readonly attribute GPUSupportedFeatures features;
     [SameObject] readonly attribute GPUSupportedLimits limits;
+    [SameObject] readonly attribute GPUAdapterInfo adapterInfo;
 
     [SameObject] readonly attribute GPUQueue queue;
 
@@ -575,7 +578,7 @@ GPUPipelineLayout includes GPUObjectBase;
 
 dictionary GPUPipelineLayoutDescriptor
          : GPUObjectDescriptorBase {
-    required sequence<GPUBindGroupLayout> bindGroupLayouts;
+    required sequence<GPUBindGroupLayout?> bindGroupLayouts;
 };
 
 [Exposed=(Window, Worker), SecureContext]
@@ -815,22 +818,31 @@ enum GPUIndexFormat {
 };
 
 enum GPUVertexFormat {
+    "uint8",
     "uint8x2",
     "uint8x4",
+    "sint8",
     "sint8x2",
     "sint8x4",
+    "unorm8",
     "unorm8x2",
     "unorm8x4",
+    "snorm8",
     "snorm8x2",
     "snorm8x4",
+    "uint16",
     "uint16x2",
     "uint16x4",
+    "sint16",
     "sint16x2",
     "sint16x4",
+    "unorm16",
     "unorm16x2",
     "unorm16x4",
+    "snorm16",
     "snorm16x2",
     "snorm16x4",
+    "float16",
     "float16x2",
     "float16x4",
     "float32",
@@ -846,6 +858,7 @@ enum GPUVertexFormat {
     "sint32x3",
     "sint32x4",
     "unorm10-10-10-2",
+    "unorm8x4-bgra",
 };
 
 enum GPUVertexStepMode {
@@ -871,26 +884,26 @@ dictionary GPUVertexAttribute {
     required GPUIndex32 shaderLocation;
 };
 
-dictionary GPUImageDataLayout {
+dictionary GPUTexelCopyBufferLayout {
     GPUSize64 offset = 0;
     GPUSize32 bytesPerRow;
     GPUSize32 rowsPerImage;
 };
 
-dictionary GPUImageCopyBuffer
-         : GPUImageDataLayout {
+dictionary GPUTexelCopyBufferInfo
+         : GPUTexelCopyBufferLayout {
     required GPUBuffer buffer;
 };
 
-dictionary GPUImageCopyTexture {
+dictionary GPUTexelCopyTextureInfo {
     required GPUTexture texture;
     GPUIntegerCoordinate mipLevel = 0;
     GPUOrigin3D origin = {};
     GPUTextureAspect aspect = "all";
 };
 
-dictionary GPUImageCopyTextureTagged
-         : GPUImageCopyTexture {
+dictionary GPUCopyExternalImageDestInfo
+         : GPUTexelCopyTextureInfo {
     PredefinedColorSpace colorSpace = "srgb";
     boolean premultipliedAlpha = false;
 };
@@ -901,10 +914,10 @@ typedef (ImageBitmap or
          HTMLVideoElement or
          VideoFrame or
          HTMLCanvasElement or
-         OffscreenCanvas) GPUImageCopyExternalImageSource;
+         OffscreenCanvas) GPUCopyExternalImageSource;
 
-dictionary GPUImageCopyExternalImage {
-    required GPUImageCopyExternalImageSource source;
+dictionary GPUCopyExternalImageSourceInfo {
+    required GPUCopyExternalImageSource source;
     GPUOrigin2D origin = {};
     boolean flipY = false;
 };
@@ -927,6 +940,7 @@ interface GPUCommandEncoder {
     GPURenderPassEncoder beginRenderPass(GPURenderPassDescriptor descriptor);
     GPUComputePassEncoder beginComputePass(optional GPUComputePassDescriptor descriptor = {});
 
+    [Throws]
     undefined copyBufferToBuffer(
         GPUBuffer source,
         GPUSize64 sourceOffset,
@@ -936,20 +950,20 @@ interface GPUCommandEncoder {
 
     [Throws]
     undefined copyBufferToTexture(
-        GPUImageCopyBuffer source,
-        GPUImageCopyTexture destination,
+        GPUTexelCopyBufferInfo source,
+        GPUTexelCopyTextureInfo destination,
         GPUExtent3D copySize);
 
     [Throws]
     undefined copyTextureToBuffer(
-        GPUImageCopyTexture source,
-        GPUImageCopyBuffer destination,
+        GPUTexelCopyTextureInfo source,
+        GPUTexelCopyBufferInfo destination,
         GPUExtent3D copySize);
 
     [Throws]
     undefined copyTextureToTexture(
-        GPUImageCopyTexture source,
-        GPUImageCopyTexture destination,
+        GPUTexelCopyTextureInfo source,
+        GPUTexelCopyTextureInfo destination,
         GPUExtent3D copySize);
 
     undefined clearBuffer(
@@ -1158,15 +1172,15 @@ interface GPUQueue {
 
     [Throws]
     undefined writeTexture(
-        GPUImageCopyTexture destination,
+        GPUTexelCopyTextureInfo destination,
         AllowSharedBufferSource data,
-        GPUImageDataLayout dataLayout,
+        GPUTexelCopyBufferLayout dataLayout,
         GPUExtent3D size);
 
     [Throws]
     undefined copyExternalImageToTexture(
-        GPUImageCopyExternalImage source,
-        GPUImageCopyTextureTagged destination,
+        GPUCopyExternalImageSourceInfo source,
+        GPUCopyExternalImageDestInfo destination,
         GPUExtent3D copySize);
 };
 GPUQueue includes GPUObjectBase;
@@ -1291,7 +1305,6 @@ dictionary GPUUncapturedErrorEventInit : EventInit {
 };
 
 partial interface GPUDevice {
-    [Exposed=(Window, Worker)]
     attribute EventHandler onuncapturederror;
 };
 
diff --git a/crates/webidl/Cargo.toml b/crates/webidl/Cargo.toml
index fde8c524..2471cb85 100644
--- a/crates/webidl/Cargo.toml
+++ b/crates/webidl/Cargo.toml
@@ -19,3 +19,6 @@ sourcefile = "0.2"
 syn = { version = '2.0', features = ['extra-traits', 'full'] }
 wasm-bindgen-backend = { path = "../backend" }
 weedle = { git = "https://github.com/rustwasm/weedle.git" }
+
+[lints]
+workspace = true
diff --git a/examples/add/Cargo.toml b/examples/add/Cargo.toml
index 5836f5cc..d6bf4247 100644
--- a/examples/add/Cargo.toml
+++ b/examples/add/Cargo.toml
@@ -10,3 +10,6 @@ crate-type = ["cdylib"]
 
 [dependencies]
 wasm-bindgen = { path = "../../" }
+
+[lints]
+workspace = true
diff --git a/examples/canvas/Cargo.toml b/examples/canvas/Cargo.toml
index 4aec70dd..b0548d09 100644
--- a/examples/canvas/Cargo.toml
+++ b/examples/canvas/Cargo.toml
@@ -15,3 +15,6 @@ wasm-bindgen = { path = "../../" }
 [dependencies.web-sys]
 features = ['CanvasRenderingContext2d', 'Document', 'Element', 'HtmlCanvasElement', 'Window']
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/char/Cargo.toml b/examples/char/Cargo.toml
index bc6bf3c3..dd78108c 100644
--- a/examples/char/Cargo.toml
+++ b/examples/char/Cargo.toml
@@ -10,3 +10,6 @@ crate-type = ["cdylib"]
 
 [dependencies]
 wasm-bindgen = { path = "../../" }
+
+[lints]
+workspace = true
diff --git a/examples/closures/Cargo.toml b/examples/closures/Cargo.toml
index 4a70ab8a..15641af0 100644
--- a/examples/closures/Cargo.toml
+++ b/examples/closures/Cargo.toml
@@ -15,3 +15,6 @@ wasm-bindgen = { path = "../../" }
 [dependencies.web-sys]
 features = ['CssStyleDeclaration', 'Document', 'Element', 'HtmlElement', 'Window']
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/console_log/Cargo.toml b/examples/console_log/Cargo.toml
index 165c280c..8419ced9 100644
--- a/examples/console_log/Cargo.toml
+++ b/examples/console_log/Cargo.toml
@@ -11,3 +11,6 @@ crate-type = ["cdylib"]
 [dependencies]
 wasm-bindgen = { path = "../../" }
 web-sys = { path = "../../crates/web-sys", features = ['console'] }
+
+[lints]
+workspace = true
diff --git a/examples/deno/Cargo.toml b/examples/deno/Cargo.toml
index 8268d48e..5ebb011c 100644
--- a/examples/deno/Cargo.toml
+++ b/examples/deno/Cargo.toml
@@ -10,3 +10,6 @@ crate-type = ["cdylib"]
 
 [dependencies]
 wasm-bindgen = { path = "../../" }
+
+[lints]
+workspace = true
diff --git a/examples/dom/Cargo.toml b/examples/dom/Cargo.toml
index 0b4b3104..3b0284db 100644
--- a/examples/dom/Cargo.toml
+++ b/examples/dom/Cargo.toml
@@ -14,3 +14,6 @@ wasm-bindgen = { path = "../../" }
 [dependencies.web-sys]
 features = ['Document', 'Element', 'HtmlElement', 'Node', 'Window']
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/duck-typed-interfaces/Cargo.toml b/examples/duck-typed-interfaces/Cargo.toml
index 50f470d2..a924f247 100644
--- a/examples/duck-typed-interfaces/Cargo.toml
+++ b/examples/duck-typed-interfaces/Cargo.toml
@@ -10,3 +10,6 @@ crate-type = ["cdylib"]
 
 [dependencies]
 wasm-bindgen = { path = "../../" }
+
+[lints]
+workspace = true
diff --git a/examples/explicit-resource-management/Cargo.toml b/examples/explicit-resource-management/Cargo.toml
index 1bba2601..01787b22 100644
--- a/examples/explicit-resource-management/Cargo.toml
+++ b/examples/explicit-resource-management/Cargo.toml
@@ -10,3 +10,6 @@ crate-type = ["cdylib"]
 
 [dependencies]
 wasm-bindgen = { path = "../../" }
+
+[lints]
+workspace = true
diff --git a/examples/explicit-resource-management/src/lib.rs b/examples/explicit-resource-management/src/lib.rs
index 67441dd7..52e49d30 100644
--- a/examples/explicit-resource-management/src/lib.rs
+++ b/examples/explicit-resource-management/src/lib.rs
@@ -39,8 +39,8 @@ extern "C" {
 
 #[wasm_bindgen]
 pub struct MyStruct {
-    x: Vec<i64>,
-    y: Vec<i64>,
+    _x: Vec<i64>,
+    _y: Vec<i64>,
     name: String,
 }
 
@@ -50,8 +50,8 @@ impl MyStruct {
     pub fn new(name: String) -> MyStruct {
         Self {
             name,
-            x: (0..50).collect(),
-            y: (0..50).collect(),
+            _x: (0..50).collect(),
+            _y: (0..50).collect(),
         }
     }
 }
diff --git a/examples/fetch/Cargo.toml b/examples/fetch/Cargo.toml
index 27719b43..1f93bcc8 100644
--- a/examples/fetch/Cargo.toml
+++ b/examples/fetch/Cargo.toml
@@ -16,3 +16,6 @@ wasm-bindgen-futures = { path = "../../crates/futures" }
 [dependencies.web-sys]
 features = ['Headers', 'Request', 'RequestInit', 'RequestMode', 'Response', 'Window']
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/guide-supported-types-examples/Cargo.toml b/examples/guide-supported-types-examples/Cargo.toml
index 5918ea94..84f15c35 100644
--- a/examples/guide-supported-types-examples/Cargo.toml
+++ b/examples/guide-supported-types-examples/Cargo.toml
@@ -11,3 +11,6 @@ crate-type = ["cdylib"]
 [dependencies]
 js-sys = { path = "../../crates/js-sys" }
 wasm-bindgen = { path = "../../" }
+
+[lints]
+workspace = true
diff --git a/examples/hello_world/Cargo.toml b/examples/hello_world/Cargo.toml
index d1218b0b..10721d8e 100644
--- a/examples/hello_world/Cargo.toml
+++ b/examples/hello_world/Cargo.toml
@@ -10,3 +10,6 @@ crate-type = ["cdylib"]
 
 [dependencies]
 wasm-bindgen = { path = "../../" }
+
+[lints]
+workspace = true
diff --git a/examples/import_js/crate/Cargo.toml b/examples/import_js/crate/Cargo.toml
index 5b53eb99..449e8530 100644
--- a/examples/import_js/crate/Cargo.toml
+++ b/examples/import_js/crate/Cargo.toml
@@ -10,3 +10,6 @@ crate-type = ["cdylib"]
 
 [dependencies]
 wasm-bindgen = { path = "../../../" }
+
+[lints]
+workspace = true
diff --git a/examples/julia_set/Cargo.toml b/examples/julia_set/Cargo.toml
index 8bdb3ff2..751aa7d5 100644
--- a/examples/julia_set/Cargo.toml
+++ b/examples/julia_set/Cargo.toml
@@ -14,3 +14,6 @@ wasm-bindgen = { path = "../../" }
 [dependencies.web-sys]
 features = ['ImageData', 'CanvasRenderingContext2d']
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/paint/Cargo.toml b/examples/paint/Cargo.toml
index 9771b0b4..ffb7aa13 100644
--- a/examples/paint/Cargo.toml
+++ b/examples/paint/Cargo.toml
@@ -26,3 +26,6 @@ features = [
   'Window',
 ]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/performance/Cargo.toml b/examples/performance/Cargo.toml
index ef3aa683..daeb5299 100644
--- a/examples/performance/Cargo.toml
+++ b/examples/performance/Cargo.toml
@@ -15,3 +15,6 @@ wasm-bindgen = { path = "../../" }
 [dependencies.web-sys]
 features = ['Window', 'Performance', 'PerformanceTiming']
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/raytrace-parallel/Cargo.toml b/examples/raytrace-parallel/Cargo.toml
index 79bdebda..384317c8 100644
--- a/examples/raytrace-parallel/Cargo.toml
+++ b/examples/raytrace-parallel/Cargo.toml
@@ -32,3 +32,6 @@ features = [
   'MessageEvent',
 ]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/request-animation-frame/Cargo.toml b/examples/request-animation-frame/Cargo.toml
index 3fe83f77..c9f6b948 100644
--- a/examples/request-animation-frame/Cargo.toml
+++ b/examples/request-animation-frame/Cargo.toml
@@ -14,3 +14,6 @@ wasm-bindgen = { path = "../../" }
 [dependencies.web-sys]
 features = ['Document', 'Element', 'HtmlElement', 'Node', 'Window']
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/synchronous-instantiation/Cargo.toml b/examples/synchronous-instantiation/Cargo.toml
index 9eda0ee8..3af99fe2 100644
--- a/examples/synchronous-instantiation/Cargo.toml
+++ b/examples/synchronous-instantiation/Cargo.toml
@@ -10,3 +10,6 @@ crate-type = ["cdylib"]
 
 [dependencies]
 wasm-bindgen = { path = "../../" }
+
+[lints]
+workspace = true
diff --git a/examples/todomvc/Cargo.toml b/examples/todomvc/Cargo.toml
index 67fe6bcd..8cfa6089 100644
--- a/examples/todomvc/Cargo.toml
+++ b/examples/todomvc/Cargo.toml
@@ -38,3 +38,6 @@ features = [
   'Window',
 ]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/wasm-audio-worklet/Cargo.toml b/examples/wasm-audio-worklet/Cargo.toml
index 6a0fae91..0a9306fb 100644
--- a/examples/wasm-audio-worklet/Cargo.toml
+++ b/examples/wasm-audio-worklet/Cargo.toml
@@ -31,3 +31,6 @@ features = [
   "Window",
 ]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/wasm-in-wasm-imports/Cargo.toml b/examples/wasm-in-wasm-imports/Cargo.toml
index ff98763f..94e385f5 100644
--- a/examples/wasm-in-wasm-imports/Cargo.toml
+++ b/examples/wasm-in-wasm-imports/Cargo.toml
@@ -12,3 +12,6 @@ crate-type = ["cdylib"]
 js-sys = { path = "../../crates/js-sys" }
 wasm-bindgen = { path = "../../" }
 wasm-bindgen-futures = { path = "../../crates/futures" }
+
+[lints]
+workspace = true
diff --git a/examples/wasm-in-wasm/Cargo.toml b/examples/wasm-in-wasm/Cargo.toml
index ce9f72ce..62babf8d 100644
--- a/examples/wasm-in-wasm/Cargo.toml
+++ b/examples/wasm-in-wasm/Cargo.toml
@@ -12,3 +12,6 @@ crate-type = ["cdylib"]
 js-sys = { path = "../../crates/js-sys" }
 wasm-bindgen = { path = "../../" }
 wasm-bindgen-futures = { path = "../../crates/futures" }
+
+[lints]
+workspace = true
diff --git a/examples/wasm-in-web-worker/Cargo.toml b/examples/wasm-in-web-worker/Cargo.toml
index 8d623646..b1fdb41a 100644
--- a/examples/wasm-in-web-worker/Cargo.toml
+++ b/examples/wasm-in-web-worker/Cargo.toml
@@ -23,3 +23,6 @@ features = [
   'Worker',
 ]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/weather_report/Cargo.toml b/examples/weather_report/Cargo.toml
index 1bb0a665..e0f59359 100644
--- a/examples/weather_report/Cargo.toml
+++ b/examples/weather_report/Cargo.toml
@@ -19,3 +19,6 @@ wasm-bindgen-futures = { path = "../../crates/futures" }
 [dependencies.web-sys]
 features = ["Document", "Element", "HtmlElement", "Window"]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/webaudio/Cargo.toml b/examples/webaudio/Cargo.toml
index 4fbea599..f1bb6757 100644
--- a/examples/webaudio/Cargo.toml
+++ b/examples/webaudio/Cargo.toml
@@ -22,3 +22,6 @@ features = [
   'OscillatorType',
 ]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/webgl/Cargo.toml b/examples/webgl/Cargo.toml
index ebf3967e..89ebe247 100644
--- a/examples/webgl/Cargo.toml
+++ b/examples/webgl/Cargo.toml
@@ -25,3 +25,6 @@ features = [
   'Window',
 ]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/webrtc_datachannel/Cargo.toml b/examples/webrtc_datachannel/Cargo.toml
index 9773e0e9..dedd4ee1 100644
--- a/examples/webrtc_datachannel/Cargo.toml
+++ b/examples/webrtc_datachannel/Cargo.toml
@@ -26,3 +26,6 @@ features = [
   "RtcDataChannelEvent",
 ]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/websockets/Cargo.toml b/examples/websockets/Cargo.toml
index 63f201d3..fa72697f 100644
--- a/examples/websockets/Cargo.toml
+++ b/examples/websockets/Cargo.toml
@@ -23,3 +23,6 @@ features = [
   "WebSocket",
 ]
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/webxr/Cargo.toml b/examples/webxr/Cargo.toml
index 0e2efb8a..69feef04 100644
--- a/examples/webxr/Cargo.toml
+++ b/examples/webxr/Cargo.toml
@@ -67,3 +67,10 @@ path = "../../crates/web-sys"
 
 [lints.rust]
 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] }
+
+[lints.clippy]
+large_enum_variant = "allow"
+new_without_default = "allow"
+overly_complex_bool_expr = "allow"
+too_many_arguments = "allow"
+type_complexity = "allow"
diff --git a/examples/without-a-bundler-no-modules/Cargo.toml b/examples/without-a-bundler-no-modules/Cargo.toml
index a5e70744..51699060 100644
--- a/examples/without-a-bundler-no-modules/Cargo.toml
+++ b/examples/without-a-bundler-no-modules/Cargo.toml
@@ -14,3 +14,6 @@ wasm-bindgen = { path = "../../" }
 [dependencies.web-sys]
 features = ['Document', 'Element', 'HtmlElement', 'Node', 'Window']
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/examples/without-a-bundler/Cargo.toml b/examples/without-a-bundler/Cargo.toml
index 07ccf676..a4f2a593 100644
--- a/examples/without-a-bundler/Cargo.toml
+++ b/examples/without-a-bundler/Cargo.toml
@@ -14,3 +14,6 @@ wasm-bindgen = { path = "../../" }
 [dependencies.web-sys]
 features = ['Document', 'Element', 'HtmlElement', 'Node', 'Window']
 path = "../../crates/web-sys"
+
+[lints]
+workspace = true
diff --git a/src/closure.rs b/src/closure.rs
index 25186da4..95cf2250 100644
--- a/src/closure.rs
+++ b/src/closure.rs
@@ -340,7 +340,7 @@ where
         #[inline(never)]
         #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))]
         unsafe fn breaks_if_inlined<T: WasmClosure + ?Sized>(a: usize, b: usize) -> u32 {
-            super::__wbindgen_describe_closure(a as u32, b as u32, describe::<T> as u32)
+            super::__wbindgen_describe_closure(a as u32, b as u32, describe::<T> as usize as u32)
         }
 
         let idx = unsafe { breaks_if_inlined::<T>(a, b) };
@@ -596,7 +596,7 @@ macro_rules! doit {
                     ret.return_abi().into()
                 }
 
-                inform(invoke::<$($var,)* R> as u32);
+                inform(invoke::<$($var,)* R> as usize as u32);
 
                 unsafe extern fn destroy<$($var: FromWasmAbi,)* R: ReturnWasmAbi>(
                     a: usize,
@@ -614,7 +614,7 @@ macro_rules! doit {
                         fields: (a, b)
                     }.ptr));
                 }
-                inform(destroy::<$($var,)* R> as u32);
+                inform(destroy::<$($var,)* R> as usize as u32);
 
                 <&Self>::describe();
             }
@@ -656,7 +656,7 @@ macro_rules! doit {
                     ret.return_abi().into()
                 }
 
-                inform(invoke::<$($var,)* R> as u32);
+                inform(invoke::<$($var,)* R> as usize as u32);
 
                 unsafe extern fn destroy<$($var: FromWasmAbi,)* R: ReturnWasmAbi>(
                     a: usize,
@@ -670,7 +670,7 @@ macro_rules! doit {
                         fields: (a, b)
                     }.ptr));
                 }
-                inform(destroy::<$($var,)* R> as u32);
+                inform(destroy::<$($var,)* R> as usize as u32);
 
                 <&mut Self>::describe();
             }
@@ -793,7 +793,7 @@ where
             ret.return_abi().into()
         }
 
-        inform(invoke::<A, R> as u32);
+        inform(invoke::<A, R> as usize as u32);
 
         #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))]
         unsafe extern "C" fn destroy<A: RefFromWasmAbi, R: ReturnWasmAbi>(a: usize, b: usize) {
@@ -805,7 +805,7 @@ where
                 FatPtr::<dyn Fn(&A) -> R> { fields: (a, b) }.ptr,
             ));
         }
-        inform(destroy::<A, R> as u32);
+        inform(destroy::<A, R> as usize as u32);
 
         <&Self>::describe();
     }
@@ -843,7 +843,7 @@ where
             ret.return_abi().into()
         }
 
-        inform(invoke::<A, R> as u32);
+        inform(invoke::<A, R> as usize as u32);
 
         #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))]
         unsafe extern "C" fn destroy<A: RefFromWasmAbi, R: ReturnWasmAbi>(a: usize, b: usize) {
@@ -855,7 +855,7 @@ where
                 FatPtr::<dyn FnMut(&A) -> R> { fields: (a, b) }.ptr,
             ));
         }
-        inform(destroy::<A, R> as u32);
+        inform(destroy::<A, R> as usize as u32);
 
         <&mut Self>::describe();
     }
diff --git a/src/convert/closures.rs b/src/convert/closures.rs
index 0e2f59ee..1f45f90f 100644
--- a/src/convert/closures.rs
+++ b/src/convert/closures.rs
@@ -57,7 +57,7 @@ macro_rules! stack_closures {
             #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))]
             fn describe() {
                 inform(FUNCTION);
-                inform($invoke::<$($var,)* R> as u32);
+                inform($invoke::<$($var,)* R> as usize as u32);
                 inform($cnt);
                 $(<$var as WasmDescribe>::describe();)*
                 <R as WasmDescribe>::describe();
@@ -112,7 +112,7 @@ macro_rules! stack_closures {
             #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))]
             fn describe() {
                 inform(FUNCTION);
-                inform($invoke_mut::<$($var,)* R> as u32);
+                inform($invoke_mut::<$($var,)* R> as usize as u32);
                 inform($cnt);
                 $(<$var as WasmDescribe>::describe();)*
                 <R as WasmDescribe>::describe();
@@ -183,7 +183,7 @@ where
     #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))]
     fn describe() {
         inform(FUNCTION);
-        inform(invoke1_ref::<A, R> as u32);
+        inform(invoke1_ref::<A, R> as usize as u32);
         inform(1);
         <&A as WasmDescribe>::describe();
         <R as WasmDescribe>::describe();
@@ -240,7 +240,7 @@ where
     #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))]
     fn describe() {
         inform(FUNCTION);
-        inform(invoke1_mut_ref::<A, R> as u32);
+        inform(invoke1_mut_ref::<A, R> as usize as u32);
         inform(1);
         <&A as WasmDescribe>::describe();
         <R as WasmDescribe>::describe();


Test patch:
diff --git a/crates/js-sys/tests/wasm/Array.rs b/crates/js-sys/tests/wasm/Array.rs
index b2ff7419..53a4bc0e 100644
--- a/crates/js-sys/tests/wasm/Array.rs
+++ b/crates/js-sys/tests/wasm/Array.rs
@@ -13,9 +13,7 @@ macro_rules! js_array {
 
 macro_rules! array {
     ($($e:expr),*) => ({
-        let mut __x = Vec::new();
-        $(__x.push(JsValue::from($e));)*
-        __x
+        vec![$(JsValue::from($e)),*]
     })
 }
 
@@ -38,7 +36,7 @@ fn from_iter() {
 
     assert_eq!(
         to_rust(
-            &vec![JsValue::from("a"), JsValue::from("b"), JsValue::from("c"),]
+            &[JsValue::from("a"), JsValue::from("b"), JsValue::from("c")]
                 .iter()
                 .collect()
         ),
@@ -53,7 +51,7 @@ fn from_iter() {
     );
 
     assert_eq!(
-        to_rust(&vec![array.clone(),].iter().collect()),
+        to_rust(&[array.clone()].iter().collect()),
         vec![JsValue::from(array)],
     );
 
@@ -74,7 +72,7 @@ fn from_iter() {
     let v = vec!["a", "b", "c"];
 
     assert_eq!(
-        to_rust(&Array::from_iter(v.into_iter().map(|s| JsValue::from(s)))),
+        to_rust(&Array::from_iter(v.into_iter().map(JsValue::from))),
         vec!["a", "b", "c"],
     );
 }
@@ -290,6 +288,7 @@ fn sort() {
 }
 
 #[wasm_bindgen_test]
+#[allow(clippy::cmp_owned)]
 fn some() {
     let array = js_array!["z", 1, "y", 2];
     assert!(array.some(&mut |e| e == JsValue::from(2)));
@@ -553,7 +552,7 @@ fn find_last_index() {
 fn to_locale_string() {
     let output = js_array![1, "a", Date::new(&"21 Dec 1997 14:12:00 UTC".into())]
         .to_locale_string(&"en".into(), &JsValue::undefined());
-    assert!(String::from(output).len() > 0);
+    assert!(!String::from(output).is_empty());
 }
 
 #[wasm_bindgen_test]
@@ -567,7 +566,7 @@ fn for_each() {
         res
     }
 
-    assert_eq!(sum_indices_of_evens(&js_array![2, 4, 6, 8]), 0 + 1 + 2 + 3);
+    assert_eq!(sum_indices_of_evens(&js_array![2, 4, 6, 8]), 1 + 2 + 3);
     assert_eq!(sum_indices_of_evens(&js_array![1, 3, 5, 7]), 0);
     assert_eq!(sum_indices_of_evens(&js_array![3, 5, 7, 10]), 3);
 }
@@ -578,7 +577,7 @@ fn set_length() {
     array.set_length(3);
     assert_eq!(
         array.iter().collect::<Vec<_>>(),
-        [1.0, 2.0, 3.0].map(|x| JsValue::from_f64(x))
+        [1.0, 2.0, 3.0].map(JsValue::from_f64)
     );
 
     array.set_length(7);
@@ -587,7 +586,7 @@ fn set_length() {
         [1.0, 2.0, 3.0]
             .iter()
             .copied()
-            .map(|x| JsValue::from_f64(x))
+            .map(JsValue::from_f64)
             .chain([JsValue::UNDEFINED; 4])
             .collect::<Vec<_>>()
     );
@@ -620,8 +619,7 @@ fn test_array_view_mut_raw<ElemT: std::cmp::PartialEq + std::fmt::Debug, ArrT>(
     let start: u8 = 10;
     let len: usize = 32;
     let end: u8 = start + len as u8;
-    let mut buffer: Vec<ElemT> = Vec::new();
-    buffer.reserve(len);
+    let mut buffer: Vec<ElemT> = Vec::with_capacity(len);
     unsafe {
         let array: ArrT = sut(buffer.as_mut_ptr(), len);
         populate_array(
diff --git a/crates/js-sys/tests/wasm/Boolean.rs b/crates/js-sys/tests/wasm/Boolean.rs
index 2021d10a..ed1eddf5 100644
--- a/crates/js-sys/tests/wasm/Boolean.rs
+++ b/crates/js-sys/tests/wasm/Boolean.rs
@@ -6,13 +6,13 @@ use wasm_bindgen_test::*;
 #[allow(deprecated)]
 #[wasm_bindgen_test]
 fn new_undefined() {
-    assert_eq!(Boolean::new(&JsValue::undefined()).value_of(), false);
+    assert!(!Boolean::new(&JsValue::undefined()).value_of());
 }
 
 #[allow(deprecated)]
 #[wasm_bindgen_test]
 fn new_truly() {
-    assert_eq!(Boolean::new(&JsValue::from("foo")).value_of(), true);
+    assert!(Boolean::new(&JsValue::from("foo")).value_of());
 }
 
 #[allow(deprecated)]
diff --git a/crates/js-sys/tests/wasm/Intl.rs b/crates/js-sys/tests/wasm/Intl.rs
index a58d12ab..5d4675e8 100644
--- a/crates/js-sys/tests/wasm/Intl.rs
+++ b/crates/js-sys/tests/wasm/Intl.rs
@@ -118,15 +118,15 @@ fn relative_time_format() {
     let opts = Object::new();
 
     let c = Intl::RelativeTimeFormat::new(&locales, &opts);
-    assert!(c.format(1_f64.into(), &"seconds").is_string());
+    assert!(c.format(1_f64, "seconds").is_string());
     assert!(c
-        .format_to_parts(1_f64.into(), &"seconds")
+        .format_to_parts(1_f64, "seconds")
         .is_instance_of::<Array>());
     assert!(c.resolved_options().is_instance_of::<Object>());
 
-    assert_eq!(c.format(1_f64.into(), &"seconds"), "in 1 second");
-    assert_eq!(c.format(1.5.into(), &"seconds"), "in 1.5 seconds");
-    assert_eq!(c.format((-1.5).into(), &"seconds"), "1.5 seconds ago");
+    assert_eq!(c.format(1_f64, "seconds"), "in 1 second");
+    assert_eq!(c.format(1.5, "seconds"), "in 1.5 seconds");
+    assert_eq!(c.format(-1.5, "seconds"), "1.5 seconds ago");
 
     let a = Intl::RelativeTimeFormat::supported_locales_of(&locales, &opts);
     assert!(a.is_instance_of::<Array>());
diff --git a/crates/js-sys/tests/wasm/JsString.rs b/crates/js-sys/tests/wasm/JsString.rs
index c9604623..31aed27f 100644
--- a/crates/js-sys/tests/wasm/JsString.rs
+++ b/crates/js-sys/tests/wasm/JsString.rs
@@ -1,3 +1,5 @@
+#![cfg(test)]
+
 use js_sys::*;
 use wasm_bindgen::prelude::*;
 use wasm_bindgen_test::*;
@@ -69,9 +71,9 @@ fn ends_with() {
     let js = JsString::from(s);
 
     // TODO: remove third parameter once we have optional parameters
-    assert_eq!(js.ends_with("question.", s.len() as i32), true);
-    assert_eq!(js.ends_with("to be", s.len() as i32), false);
-    assert_eq!(js.ends_with("to be", 19), true);
+    assert!(js.ends_with("question.", s.len() as i32));
+    assert!(!js.ends_with("to be", s.len() as i32));
+    assert!(js.ends_with("to be", 19));
 }
 
 #[wasm_bindgen_test]
@@ -93,7 +95,7 @@ fn from_char_code() {
     let codes_u16: Vec<u16> = codes
         .into_iter()
         .map(|code| {
-            assert!(code <= u32::from(u16::max_value()));
+            assert!(code <= u32::from(u16::MAX));
             code as u16
         })
         .collect();
@@ -121,9 +123,9 @@ fn from_code_point() {
     );
     assert_eq!(JsString::from_code_point(&codes).unwrap(), "☃★♲你");
 
-    assert!(!JsString::from_code_point1(0x10FFFF).is_err());
+    assert!(JsString::from_code_point1(0x10FFFF).is_ok());
     assert!(JsString::from_code_point1(0x110000).is_err());
-    assert!(JsString::from_code_point1(u32::max_value()).is_err());
+    assert!(JsString::from_code_point1(u32::MAX).is_err());
 }
 
 #[wasm_bindgen_test]
@@ -131,13 +133,13 @@ fn includes() {
     let str = JsString::from("Blue Whale");
 
     // TODO: remove second parameter once we have optional parameters
-    assert_eq!(str.includes("Blue", 0), true);
-    assert_eq!(str.includes("Blute", 0), false);
-    assert_eq!(str.includes("Whale", 0), true);
-    assert_eq!(str.includes("Whale", 5), true);
-    assert_eq!(str.includes("Whale", 7), false);
-    assert_eq!(str.includes("", 0), true);
-    assert_eq!(str.includes("", 16), true);
+    assert!(str.includes("Blue", 0));
+    assert!(!str.includes("Blute", 0));
+    assert!(str.includes("Whale", 0));
+    assert!(str.includes("Whale", 5));
+    assert!(!str.includes("Whale", 7));
+    assert!(str.includes("", 0));
+    assert!(str.includes("", 16));
 }
 
 #[wasm_bindgen_test]
@@ -225,12 +227,12 @@ fn match_all() {
         .unwrap();
 
     let obj = &result[0];
-    assert_eq!(Reflect::get(obj.as_ref(), &"0".into()).unwrap(), "The");
-    assert_eq!(Reflect::get(obj.as_ref(), &"1".into()).unwrap(), "he");
+    assert_eq!(Reflect::get(obj, &"0".into()).unwrap(), "The");
+    assert_eq!(Reflect::get(obj, &"1".into()).unwrap(), "he");
 
     let obj = &result[1];
-    assert_eq!(Reflect::get(obj.as_ref(), &"0".into()).unwrap(), "It");
-    assert_eq!(Reflect::get(obj.as_ref(), &"1".into()).unwrap(), "t");
+    assert_eq!(Reflect::get(obj, &"0".into()).unwrap(), "It");
+    assert_eq!(Reflect::get(obj, &"1".into()).unwrap(), "t");
 
     let result: Vec<_> = JsString::from("foo")
         .match_all(&re)
@@ -249,29 +251,20 @@ fn match_all() {
 
     let obj = &result[0];
     assert_eq!(
-        Reflect::get(obj.as_ref(), &"0".into()).unwrap(),
+        Reflect::get(obj, &"0".into()).unwrap(),
         "see Chapter 3.4.5.1"
     );
-    assert_eq!(
-        Reflect::get(obj.as_ref(), &"1".into()).unwrap(),
-        "Chapter 3.4.5.1"
-    );
-    assert_eq!(Reflect::get(obj.as_ref(), &"2".into()).unwrap(), ".1");
-    assert_eq!(Reflect::get(obj.as_ref(), &"index".into()).unwrap(), 22);
-    assert_eq!(Reflect::get(obj.as_ref(), &"input".into()).unwrap(), s);
+    assert_eq!(Reflect::get(obj, &"1".into()).unwrap(), "Chapter 3.4.5.1");
+    assert_eq!(Reflect::get(obj, &"2".into()).unwrap(), ".1");
+    assert_eq!(Reflect::get(obj, &"index".into()).unwrap(), 22);
+    assert_eq!(Reflect::get(obj, &"input".into()).unwrap(), s);
 
     let obj = &result[1];
-    assert_eq!(
-        Reflect::get(obj.as_ref(), &"0".into()).unwrap(),
-        "see Chapter 3.1.4"
-    );
-    assert_eq!(
-        Reflect::get(obj.as_ref(), &"1".into()).unwrap(),
-        "Chapter 3.1.4"
-    );
-    assert_eq!(Reflect::get(obj.as_ref(), &"2".into()).unwrap(), ".4");
-    assert_eq!(Reflect::get(obj.as_ref(), &"index".into()).unwrap(), 48);
-    assert_eq!(Reflect::get(obj.as_ref(), &"input".into()).unwrap(), s);
+    assert_eq!(Reflect::get(obj, &"0".into()).unwrap(), "see Chapter 3.1.4");
+    assert_eq!(Reflect::get(obj, &"1".into()).unwrap(), "Chapter 3.1.4");
+    assert_eq!(Reflect::get(obj, &"2".into()).unwrap(), ".4");
+    assert_eq!(Reflect::get(obj, &"index".into()).unwrap(), 48);
+    assert_eq!(Reflect::get(obj, &"input".into()).unwrap(), s);
 }
 
 #[wasm_bindgen_test]
@@ -512,8 +505,8 @@ fn to_locale_lower_case() {
     let js = JsString::from("Mozilla");
     assert_eq!(js.to_locale_lower_case(None), "mozilla");
     let s = JsString::from("\u{0130}");
-    assert_eq!(s.to_locale_lower_case(Some("tr".into())), "i");
-    assert_ne!(s.to_locale_lower_case(Some("en-US".into())), "i");
+    assert_eq!(s.to_locale_lower_case(Some("tr")), "i");
+    assert_ne!(s.to_locale_lower_case(Some("en-US")), "i");
 }
 
 #[wasm_bindgen_test]
@@ -521,8 +514,8 @@ fn to_locale_upper_case() {
     let js = JsString::from("mozilla");
     assert_eq!(js.to_locale_upper_case(None), "MOZILLA");
     let s = JsString::from("i\u{0307}");
-    assert_eq!(s.to_locale_upper_case(Some("lt".into())), "I");
-    assert_ne!(s.to_locale_upper_case(Some("en-US".into())), "I");
+    assert_eq!(s.to_locale_upper_case(Some("lt")), "I");
+    assert_ne!(s.to_locale_upper_case(Some("en-US")), "I");
 }
 
 #[wasm_bindgen_test]
@@ -573,7 +566,7 @@ fn value_of() {
 fn raw() {
     let call_site = Object::new();
     let raw = Array::of3(&"foo".into(), &"bar".into(), &"123".into());
-    Reflect::set(&call_site.as_ref(), &"raw".into(), &raw.into()).unwrap();
+    Reflect::set(call_site.as_ref(), &"raw".into(), &raw.into()).unwrap();
     assert_eq!(
         JsString::raw_2(&call_site, "5", "JavaScript").unwrap(),
         "foo5barJavaScript123"
diff --git a/crates/js-sys/tests/wasm/Map.rs b/crates/js-sys/tests/wasm/Map.rs
index 8223c6e7..3bdff9b5 100644
--- a/crates/js-sys/tests/wasm/Map.rs
+++ b/crates/js-sys/tests/wasm/Map.rs
@@ -19,8 +19,8 @@ fn delete() {
     let map = Map::new();
     map.set(&"foo".into(), &"bar".into());
     assert_eq!(map.size(), 1);
-    assert_eq!(map.delete(&"foo".into()), true);
-    assert_eq!(map.delete(&"bar".into()), false);
+    assert!(map.delete(&"foo".into()));
+    assert!(!map.delete(&"bar".into()));
     assert_eq!(map.size(), 0);
 }
 
@@ -63,8 +63,8 @@ fn get() {
 fn has() {
     let map = Map::new();
     map.set(&"foo".into(), &"bar".into());
-    assert_eq!(map.has(&"foo".into()), true);
-    assert_eq!(map.has(&"bar".into()), false);
+    assert!(map.has(&"foo".into()));
+    assert!(!map.has(&"bar".into()));
 }
 
 #[wasm_bindgen_test]
@@ -76,8 +76,8 @@ fn new() {
 fn set() {
     let map = Map::new();
     let new = map.set(&"foo".into(), &"bar".into());
-    assert_eq!(map.has(&"foo".into()), true);
-    assert_eq!(new.has(&"foo".into()), true);
+    assert!(map.has(&"foo".into()));
+    assert!(new.has(&"foo".into()));
 }
 
 #[wasm_bindgen_test]
diff --git a/crates/js-sys/tests/wasm/MapIterator.rs b/crates/js-sys/tests/wasm/MapIterator.rs
index 6a6eec39..6b64c086 100644
--- a/crates/js-sys/tests/wasm/MapIterator.rs
+++ b/crates/js-sys/tests/wasm/MapIterator.rs
@@ -9,7 +9,7 @@ fn entries() {
     let entries = map.entries();
 
     let next = entries.next().unwrap();
-    assert_eq!(next.done(), false);
+    assert!(!next.done());
     assert!(next.value().is_object());
     assert_eq!(Reflect::get(&next.value(), &0.into()).unwrap(), "uno");
     assert_eq!(Reflect::get(&next.value(), &1.into()).unwrap(), 1);
@@ -27,7 +27,7 @@ fn keys() {
     let keys = map.keys();
 
     let next = keys.next().unwrap();
-    assert_eq!(next.done(), false);
+    assert!(!next.done());
     assert_eq!(next.value(), "uno");
 
     let next = keys.next().unwrap();
@@ -43,7 +43,7 @@ fn values() {
     let values = map.values();
 
     let next = values.next().unwrap();
-    assert_eq!(next.done(), false);
+    assert!(!next.done());
     assert_eq!(next.value(), 1);
 
     let next = values.next().unwrap();
diff --git a/crates/js-sys/tests/wasm/Math.rs b/crates/js-sys/tests/wasm/Math.rs
index 95b70b5c..e1e97ee0 100644
--- a/crates/js-sys/tests/wasm/Math.rs
+++ b/crates/js-sys/tests/wasm/Math.rs
@@ -1,5 +1,4 @@
-use std::f64::consts::PI;
-use std::f64::{NAN, NEG_INFINITY};
+use std::f64::consts::{FRAC_PI_3, LN_2, LOG10_2, PI};
 
 use js_sys::*;
 use wasm_bindgen_test::*;
@@ -30,7 +29,7 @@ fn abs() {
 #[wasm_bindgen_test]
 fn acos() {
     assert_eq!(Math::acos(-1.), PI);
-    assert_eq!(Math::acos(0.5), 1.0471975511965979);
+    assert_eq!(Math::acos(0.5), FRAC_PI_3);
     assert!(Math::acos(2.).is_nan());
 }
 
@@ -127,9 +126,9 @@ fn floor() {
 #[wasm_bindgen_test]
 fn fround() {
     assert!(Math::fround(5.5) == 5.5);
-    assert!(Math::fround(5.05) == 5.050000190734863);
+    assert!(Math::fround(5.05) == 5.05);
     assert!(Math::fround(5.) == 5.);
-    assert!(Math::fround(-5.05) == -5.050000190734863);
+    assert!(Math::fround(-5.05) == -5.05);
 }
 
 #[wasm_bindgen_test]
@@ -157,14 +156,14 @@ fn log() {
 fn log10() {
     assert_eq!(Math::log10(100000.), 5.);
     assert_eq!(Math::log10(1.), 0.);
-    assert_eq!(Math::log10(2.), 0.3010299956639812);
+    assert_eq!(Math::log10(2.), LOG10_2);
 }
 
 #[wasm_bindgen_test]
 fn log1p() {
-    assert_eq!(Math::log1p(1.), 0.6931471805599453);
+    assert_eq!(Math::log1p(1.), LN_2);
     assert_eq!(Math::log1p(0.), 0.);
-    assert_eq!(Math::log1p(-1.), NEG_INFINITY);
+    assert_eq!(Math::log1p(-1.), f64::NEG_INFINITY);
     assert!(Math::log1p(-2.).is_nan());
 }
 
@@ -173,7 +172,7 @@ fn log2() {
     assert_eq!(Math::log2(3.), 1.584962500721156);
     assert_eq!(Math::log2(2.), 1.);
     assert_eq!(Math::log2(1.), 0.);
-    assert_eq!(Math::log2(0.), NEG_INFINITY);
+    assert_eq!(Math::log2(0.), f64::NEG_INFINITY);
 }
 
 #[wasm_bindgen_test]
@@ -222,7 +221,7 @@ fn sign() {
     assert_eq!(Math::sign(-3.), -1.);
     assert_eq!(Math::sign(2.3), 1.);
     assert_eq!(Math::sign(0.), 0.);
-    assert!(Math::sign(NAN).is_nan());
+    assert!(Math::sign(f64::NAN).is_nan());
 }
 
 #[wasm_bindgen_test]
diff --git a/crates/js-sys/tests/wasm/Number.rs b/crates/js-sys/tests/wasm/Number.rs
index 31f3f565..55199bfb 100644
--- a/crates/js-sys/tests/wasm/Number.rs
+++ b/crates/js-sys/tests/wasm/Number.rs
@@ -1,7 +1,4 @@
-use std::{
-    convert::TryFrom,
-    f64::{INFINITY, NAN},
-};
+use std::convert::TryFrom;
 
 use js_sys::*;
 use wasm_bindgen::prelude::*;
@@ -23,8 +20,8 @@ fn is_finite() {
     assert!(Number::is_finite(&42.into()));
     assert!(Number::is_finite(&42.1.into()));
     assert!(!Number::is_finite(&"42".into()));
-    assert!(!Number::is_finite(&NAN.into()));
-    assert!(!Number::is_finite(&INFINITY.into()));
+    assert!(!Number::is_finite(&f64::NAN.into()));
+    assert!(!Number::is_finite(&f64::INFINITY.into()));
 }
 
 #[wasm_bindgen_test]
@@ -35,7 +32,7 @@ fn is_integer() {
 
 #[wasm_bindgen_test]
 fn is_nan() {
-    assert!(Number::is_nan(&NAN.into()));
+    assert!(Number::is_nan(&f64::NAN.into()));
 
     assert!(!Number::is_nan(&JsValue::TRUE));
     assert!(!Number::is_nan(&JsValue::NULL));
@@ -53,16 +50,13 @@ fn is_nan() {
 
 #[wasm_bindgen_test]
 fn is_safe_integer() {
-    assert_eq!(Number::is_safe_integer(&42.into()), true);
-    assert_eq!(
-        Number::is_safe_integer(&(Math::pow(2., 53.) - 1.).into()),
-        true
-    );
-    assert_eq!(Number::is_safe_integer(&Math::pow(2., 53.).into()), false);
-    assert_eq!(Number::is_safe_integer(&"42".into()), false);
-    assert_eq!(Number::is_safe_integer(&42.1.into()), false);
-    assert_eq!(Number::is_safe_integer(&NAN.into()), false);
-    assert_eq!(Number::is_safe_integer(&INFINITY.into()), false);
+    assert!(Number::is_safe_integer(&42.into()));
+    assert!(Number::is_safe_integer(&(Math::pow(2., 53.) - 1.).into()));
+    assert!(!Number::is_safe_integer(&Math::pow(2., 53.).into()));
+    assert!(!Number::is_safe_integer(&"42".into()));
+    assert!(!Number::is_safe_integer(&42.1.into()));
+    assert!(!Number::is_safe_integer(&f64::NAN.into()));
+    assert!(!Number::is_safe_integer(&f64::INFINITY.into()));
 }
 
 #[allow(deprecated)]
diff --git a/crates/js-sys/tests/wasm/Object.rs b/crates/js-sys/tests/wasm/Object.rs
index 460fe0f7..7388c4e1 100644
--- a/crates/js-sys/tests/wasm/Object.rs
+++ b/crates/js-sys/tests/wasm/Object.rs
@@ -1,5 +1,6 @@
+#![cfg(test)]
+
 use js_sys::*;
-use std::f64::NAN;
 use wasm_bindgen::prelude::*;
 use wasm_bindgen_test::*;
 
@@ -213,7 +214,10 @@ fn is() {
     assert!(Object::is(&JsValue::FALSE, &JsValue::FALSE));
     assert!(Object::is(&"foo".into(), &"foo".into()));
     assert!(Object::is(&JsValue::from(42), &JsValue::from(42)));
-    assert!(Object::is(&JsValue::from(NAN), &JsValue::from(NAN)));
+    assert!(Object::is(
+        &JsValue::from(f64::NAN),
+        &JsValue::from(f64::NAN)
+    ));
 
     let another_object = JsValue::from(Object::new());
     assert!(!Object::is(&object, &another_object));
@@ -296,7 +300,10 @@ fn value_of() {
     let a = JsValue::from(foo_42());
     let b = JsValue::from(foo_42());
     let a2 = JsValue::from(Object::from(a.clone()).value_of());
-    assert_eq!(a, a);
+    #[allow(clippy::eq_op)]
+    {
+        assert_eq!(a, a);
+    }
     assert_eq!(a, a2);
     assert_ne!(a, b);
     assert_ne!(a2, b);
diff --git a/crates/js-sys/tests/wasm/Reflect.rs b/crates/js-sys/tests/wasm/Reflect.rs
index d50629ec..5936b013 100644
--- a/crates/js-sys/tests/wasm/Reflect.rs
+++ b/crates/js-sys/tests/wasm/Reflect.rs
@@ -1,3 +1,5 @@
+#![allow(deprecated)]
+
 use js_sys::*;
 use wasm_bindgen::prelude::*;
 use wasm_bindgen_test::*;
diff --git a/crates/js-sys/tests/wasm/Set.rs b/crates/js-sys/tests/wasm/Set.rs
index 94905bef..3346de47 100644
--- a/crates/js-sys/tests/wasm/Set.rs
+++ b/crates/js-sys/tests/wasm/Set.rs
@@ -5,7 +5,7 @@ use wasm_bindgen_test::*;
 fn set2vec(s: &Set) -> Vec<JsValue> {
     let mut result = Vec::new();
     s.for_each(&mut |x, _, _| result.push(x));
-    return result;
+    result
 }
 
 #[wasm_bindgen_test]
diff --git a/crates/js-sys/tests/wasm/Symbol.rs b/crates/js-sys/tests/wasm/Symbol.rs
index 0f1e3d0f..0f7a8868 100644
--- a/crates/js-sys/tests/wasm/Symbol.rs
+++ b/crates/js-sys/tests/wasm/Symbol.rs
@@ -1,3 +1,5 @@
+#![cfg(test)]
+
 use js_sys::*;
 use wasm_bindgen::prelude::*;
 use wasm_bindgen_futures::JsFuture;
@@ -85,8 +87,11 @@ fn to_string_tag() {
 fn for_() {
     let foo = JsValue::from(Symbol::for_("foo"));
     let bar = JsValue::from(Symbol::for_("bar"));
-    assert_eq!(foo, foo);
-    assert_eq!(bar, bar);
+    #[allow(clippy::eq_op)]
+    {
+        assert_eq!(foo, foo);
+        assert_eq!(bar, bar);
+    }
     assert_ne!(foo, bar);
     assert_ne!(bar, foo);
 
diff --git a/crates/js-sys/tests/wasm/WebAssembly.rs b/crates/js-sys/tests/wasm/WebAssembly.rs
index 4a236548..ed28d764 100644
--- a/crates/js-sys/tests/wasm/WebAssembly.rs
+++ b/crates/js-sys/tests/wasm/WebAssembly.rs
@@ -101,7 +101,7 @@ fn module_imports() {
 
 #[wasm_bindgen_test]
 fn table_inheritance() {
-    let table = WebAssembly::Table::new(&get_table_object().into()).unwrap();
+    let table = WebAssembly::Table::new(&get_table_object()).unwrap();
     assert!(table.is_instance_of::<WebAssembly::Table>());
     assert!(table.is_instance_of::<Object>());
 
@@ -118,7 +118,7 @@ fn table_error() {
 
 #[wasm_bindgen_test]
 fn table() {
-    let table = WebAssembly::Table::new(&get_table_object().into()).unwrap();
+    let table = WebAssembly::Table::new(&get_table_object()).unwrap();
     assert_eq!(table.length(), 1);
 
     assert!(table.get(0).is_ok());
diff --git a/crates/js-sys/tests/wasm/global_fns.rs b/crates/js-sys/tests/wasm/global_fns.rs
index 1a2c5e1c..b15344bd 100644
--- a/crates/js-sys/tests/wasm/global_fns.rs
+++ b/crates/js-sys/tests/wasm/global_fns.rs
@@ -1,12 +1,9 @@
-use std::f64::{INFINITY, NAN};
-
 use js_sys::*;
 use wasm_bindgen_test::*;
 
 #[wasm_bindgen_test]
 fn test_decode_uri() {
     let x = decode_uri("https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B")
-        .ok()
         .expect("should decode URI OK");
     assert_eq!(String::from(x), "https://mozilla.org/?x=шеллы");
 
@@ -15,9 +12,7 @@ fn test_decode_uri() {
 
 #[wasm_bindgen_test]
 fn test_decode_uri_component() {
-    let x = decode_uri_component("%3Fx%3Dtest")
-        .ok()
-        .expect("should decode URI OK");
+    let x = decode_uri_component("%3Fx%3Dtest").expect("should decode URI OK");
     assert_eq!(String::from(x), "?x=test");
 
     assert!(decode_uri_component("%E0%A4%A").is_err());
@@ -37,12 +32,10 @@ fn test_encode_uri_component() {
 
 #[wasm_bindgen_test]
 fn test_eval() {
-    let x = eval("42").ok().expect("should eval OK");
+    let x = eval("42").expect("should eval OK");
     assert_eq!(x.as_f64().unwrap(), 42.0);
 
-    let err = eval("(function () { throw 42; }())")
-        .err()
-        .expect("eval should throw");
+    let err = eval("(function () { throw 42; }())").expect_err("eval should throw");
     assert_eq!(err.as_f64().unwrap(), 42.0);
 }
 
@@ -51,8 +44,8 @@ fn test_is_finite() {
     assert!(is_finite(&42.into()));
     assert!(is_finite(&42.1.into()));
     assert!(is_finite(&"42".into()));
-    assert!(!is_finite(&NAN.into()));
-    assert!(!is_finite(&INFINITY.into()));
+    assert!(!is_finite(&f64::NAN.into()));
+    assert!(!is_finite(&f64::INFINITY.into()));
 }
 
 #[wasm_bindgen_test]
diff --git a/crates/test-macro/Cargo.toml b/crates/test-macro/Cargo.toml
index d43aafe1..1d0ecab4 100644
--- a/crates/test-macro/Cargo.toml
+++ b/crates/test-macro/Cargo.toml
@@ -29,3 +29,6 @@ syn = { version = "2.0", default-features = false, features = [
 tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
 trybuild = "1.0"
 wasm-bindgen-test = { path = "../test" }
+
+[lints]
+workspace = true
diff --git a/crates/test/Cargo.toml b/crates/test/Cargo.toml
index a51d8ff6..fccd1b96 100644
--- a/crates/test/Cargo.toml
+++ b/crates/test/Cargo.toml
@@ -29,5 +29,12 @@ wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.45', feature
 [lints.rust]
 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }
 
+[lints.clippy]
+large_enum_variant = "allow"
+new_without_default = "allow"
+overly_complex_bool_expr = "allow"
+too_many_arguments = "allow"
+type_complexity = "allow"
+
 [lib]
 test = false
diff --git a/crates/test/src/rt/mod.rs b/crates/test/src/rt/mod.rs
index 5489e19b..2d508c6e 100644
--- a/crates/test/src/rt/mod.rs
+++ b/crates/test/src/rt/mod.rs
@@ -272,7 +272,6 @@ impl Context {
     /// coordinated, and this will collect output and results for all executed
     /// tests.
     #[wasm_bindgen(constructor)]
-    #[allow(clippy::new_without_default)]
     pub fn new() -> Context {
         fn panic_handling(mut message: String) {
             let should_panic = CURRENT_OUTPUT.with(|output| {
diff --git a/crates/typescript-tests/Cargo.toml b/crates/typescript-tests/Cargo.toml
index 90d394bc..1bd464ff 100644
--- a/crates/typescript-tests/Cargo.toml
+++ b/crates/typescript-tests/Cargo.toml
@@ -15,3 +15,6 @@ web-sys = { path = '../web-sys', features = ['HtmlElement', 'Node', 'Document']
 
 [lib]
 crate-type = ['cdylib']
+
+[lints]
+workspace = true
diff --git a/crates/typescript-tests/src/custom_section.rs b/crates/typescript-tests/src/custom_section.rs
index 68c748c8..4ed757c3 100644
--- a/crates/typescript-tests/src/custom_section.rs
+++ b/crates/typescript-tests/src/custom_section.rs
@@ -8,6 +8,7 @@ const TS_INTERFACE_EXPORT: &'static str = r"
 #[wasm_bindgen(typescript_custom_section)]
 const TS_INTERFACE_EXPORT1: &'static str = include_str!("./custom_section_types.d.ts");
 
+#[allow(dead_code)]
 const TS_INTERFACE_EXPORT2: &str = "interface Person2 { height: number; }";
 #[wasm_bindgen(typescript_custom_section)]
 const _: &str = TS_INTERFACE_EXPORT2;
diff --git a/crates/web-sys/tests/wasm/button_element.rs b/crates/web-sys/tests/wasm/button_element.rs
index 5a1296a0..f46051b3 100644
--- a/crates/web-sys/tests/wasm/button_element.rs
+++ b/crates/web-sys/tests/wasm/button_element.rs
@@ -9,6 +9,7 @@ extern "C" {
 }
 
 #[wasm_bindgen_test]
+#[allow(deprecated)]
 fn test_button_element() {
     let element = new_button();
     let location = web_sys::window().unwrap().location().href().unwrap();
@@ -21,8 +22,9 @@ fn test_button_element() {
     assert!(element.disabled(), "Should be disabled");
 
     match element.form() {
-        None => assert!(true, "Shouldn't have a form"),
-        _ => assert!(false, "Shouldn't have a form"),
+        // Shouldn't have a form
+        None => (),
+        _ => unreachable!("Shouldn't have a form"),
     };
 
     assert_eq!(
@@ -73,17 +75,17 @@ fn test_button_element() {
     element.set_value("value1");
     assert_eq!(element.value(), "value1", "Should have a value");
 
-    assert_eq!(element.will_validate(), false, "Shouldn't validate");
+    assert!(!element.will_validate(), "Shouldn't validate");
     assert_eq!(
         element.validation_message().unwrap(),
         "",
         "Shouldn't have a value"
     );
-    assert_eq!(element.check_validity(), true, "Should be valid");
-    assert_eq!(element.report_validity(), true, "Should be valid");
+    assert!(element.check_validity(), "Should be valid");
+    assert!(element.report_validity(), "Should be valid");
     element.set_custom_validity("Boop"); // Method exists but doesn't impact validity
-    assert_eq!(element.check_validity(), true, "Should be valid");
-    assert_eq!(element.report_validity(), true, "Should be valid");
+    assert!(element.check_validity(), "Should be valid");
+    assert!(element.report_validity(), "Should be valid");
 
     assert_eq!(
         element.labels().length(),
@@ -102,9 +104,10 @@ fn test_button_element_in_form() {
     form.append_child(&button).unwrap();
 
     match button.form() {
-        None => assert!(false, "Should have a form"),
+        // Should have a form
+        None => (),
         Some(form) => {
-            assert!(true, "Should have a form");
+            // Should have a form
             assert_eq!(
                 form.name(),
                 "test-form",
diff --git a/crates/web-sys/tests/wasm/element.rs b/crates/web-sys/tests/wasm/element.rs
index ba405362..8cc1cefc 100644
--- a/crates/web-sys/tests/wasm/element.rs
+++ b/crates/web-sys/tests/wasm/element.rs
@@ -14,7 +14,10 @@ fn element() {
     */
     let element = new_div();
 
-    assert_eq!(element, element);
+    #[allow(clippy::eq_op)]
+    {
+        assert_eq!(element, element);
+    }
 
     assert_eq!(element.prefix(), None, "Shouldn't have a prefix");
     assert_eq!(element.local_name(), "div", "Should have a div local name");
@@ -24,17 +27,11 @@ fn element() {
     assert_eq!(element.id(), "beep", "Should have an id of 'beep'");
 
     // must_use is set on this result?
-    assert_eq!(
-        element.set_attribute("id", "beep").unwrap(),
-        (),
-        "Should set id"
-    );
+    // Should set id
+    let _: () = element.set_attribute("id", "beep").unwrap();
     assert!(element.has_attribute("id"), "Should now have an id");
-    assert_eq!(
-        element.remove_attribute("id").unwrap(),
-        (),
-        "Should return nothing if removed"
-    );
+    // Should return nothing if removed
+    let _: () = element.remove_attribute("id").unwrap();
 
     assert_eq!(element.class_name(), "", "Shouldn't have a class name");
     element.set_class_name("test thing");
@@ -48,11 +45,8 @@ fn element() {
         "test thing",
         "Should have a class name"
     );
-    assert_eq!(
-        element.remove_attribute("class").unwrap(),
-        (),
-        "Should return nothing if removed"
-    );
+    // Should return nothing if removed
+    let _: () = element.remove_attribute("class").unwrap();
     /* Tests needed for:
     get_attribute_ns
     */
@@ -79,71 +73,52 @@ fn element() {
     assert!(!element.has_attribute("disabled"), "Should not be disabled");
 
     assert!(!element.has_attribute("title"), "Should not have a title");
-    assert_eq!(
-        element.set_attribute("title", "boop").unwrap(),
-        (),
-        "Should return nothing if set correctly"
-    );
+    // Should return nothing if set correctly
+    let _: () = element.set_attribute("title", "boop").unwrap();
     assert!(element.has_attribute("title"), "Should have a title");
     assert_eq!(
         element.get_attribute("title").unwrap(),
         "boop",
         "Title should be 'boop'"
     );
-    assert_eq!(
-        element.remove_attribute("title").unwrap(),
-        (),
-        "Should return nothing if removed"
-    );
+    // Should return nothing if removed
+    let _: () = element.remove_attribute("title").unwrap();
     assert!(!element.has_attribute("title"), "Should not have a title");
     /* Tests needed for:
     set_attribute_ns
     */
 
     assert!(!element.has_attributes(), "Should not have any attributes");
-    assert_eq!(
-        element.set_attribute("title", "boop").unwrap(),
-        (),
-        "Should return nothing if set correctly"
-    );
+    // Should return nothing if set correctly
+    let _: () = element.set_attribute("title", "boop").unwrap();
     assert!(element.has_attributes(), "Should have attributes");
-    assert_eq!(
-        element.remove_attribute("title").unwrap(),
-        (),
-        "Should return nothing if removed"
-    );
+    // Should return nothing if removed
+    let _: () = element.remove_attribute("title").unwrap();
     /* Tests needed for:
     remove_attribute_ns
     has_attribute_ns
     closest
     */
 
-    assert_eq!(
-        element.matches(".this-is-a-thing").unwrap(),
-        false,
+    assert!(
+        !element.matches(".this-is-a-thing").unwrap(),
         "Should not match selector"
     );
-    assert_eq!(
-        element.webkit_matches_selector(".this-is-a-thing").unwrap(),
-        false,
+    assert!(
+        !element.webkit_matches_selector(".this-is-a-thing").unwrap(),
         "Should not match selector"
     );
     element.set_class_name("this-is-a-thing");
-    assert_eq!(
+    assert!(
         element.matches(".this-is-a-thing").unwrap(),
-        true,
         "Should match selector"
     );
-    assert_eq!(
+    assert!(
         element.webkit_matches_selector(".this-is-a-thing").unwrap(),
-        true,
         "Should match selector"
     );
-    assert_eq!(
-        element.remove_attribute("class").unwrap(),
-        (),
-        "Should return nothing if removed"
-    );
+    // Should return nothing if removed
+    let _: () = element.remove_attribute("class").unwrap();
 
     /* Tests needed for:
     insert_adjacent_element
diff --git a/crates/web-sys/tests/wasm/head_element.rs b/crates/web-sys/tests/wasm/head_element.rs
index 4b827335..7bd2c15e 100644
--- a/crates/web-sys/tests/wasm/head_element.rs
+++ b/crates/web-sys/tests/wasm/head_element.rs
@@ -10,5 +10,5 @@ extern "C" {
 #[wasm_bindgen_test]
 fn test_head_element() {
     let _element = new_head();
-    assert!(true, "Head doesn't have an interface");
+    // Head doesn't have an interface
 }
diff --git a/crates/web-sys/tests/wasm/headers.rs b/crates/web-sys/tests/wasm/headers.rs
index f7cb4f7d..8433ee50 100644
--- a/crates/web-sys/tests/wasm/headers.rs
+++ b/crates/web-sys/tests/wasm/headers.rs
@@ -1,4 +1,4 @@
-use js_sys::{Array, Function, JsString};
+use js_sys::Array;
 use wasm_bindgen::prelude::*;
 use wasm_bindgen_test::*;
 use web_sys::Headers;
@@ -65,6 +65,6 @@ fn headers_for_each() {
         }
         count += 1;
     }) as Box<dyn FnMut(JsValue)>);
-    let res = new_headers_2().for_each(&cb.as_ref().unchecked_ref());
+    let res = new_headers_2().for_each(cb.as_ref().unchecked_ref());
     assert!(res.is_ok());
 }
diff --git a/crates/web-sys/tests/wasm/hr_element.rs b/crates/web-sys/tests/wasm/hr_element.rs
index fe63c140..d707b5a5 100644
--- a/crates/web-sys/tests/wasm/hr_element.rs
+++ b/crates/web-sys/tests/wasm/hr_element.rs
@@ -20,5 +20,5 @@ fn test_hr_element() {
     assert_eq!(hr.width(), "256");
 
     hr.set_no_shade(true);
-    assert_eq!(hr.no_shade(), true);
+    assert!(hr.no_shade());
 }
diff --git a/crates/web-sys/tests/wasm/html_element.rs b/crates/web-sys/tests/wasm/html_element.rs
index 4f5173ed..710699e7 100644
--- a/crates/web-sys/tests/wasm/html_element.rs
+++ b/crates/web-sys/tests/wasm/html_element.rs
@@ -93,10 +93,10 @@ fn test_html_element() {
     assert_eq!(element.tab_index(), 1, "Should be tab_index");
 
     // TODO add a focus handler here
-    assert_eq!(element.focus().unwrap(), (), "No result");
+    let _: () = element.focus().unwrap();
 
     // TODO add a blur handler here
-    assert_eq!(element.blur().unwrap(), (), "No result");
+    let _: () = element.blur().unwrap();
 
     assert_eq!(element.access_key(), "", "Shouldn't have a access_key");
     element.set_access_key("a");
@@ -128,8 +128,9 @@ fn test_html_element() {
 
     // TODO verify case where we have an offset_parent
     match element.offset_parent() {
-        None => assert!(true, "Shouldn't have an offset_parent set"),
-        _ => assert!(false, "Shouldn't have a offset_parent set"),
+        // Shouldn't have an offset_parent set
+        None => (),
+        _ => unreachable!("Shouldn't have a offset_parent set"),
     };
 
     // TODO verify when we have offsets
diff --git a/crates/web-sys/tests/wasm/input_element.rs b/crates/web-sys/tests/wasm/input_element.rs
index 30fc4ba7..ea2f9c66 100644
--- a/crates/web-sys/tests/wasm/input_element.rs
+++ b/crates/web-sys/tests/wasm/input_element.rs
@@ -8,6 +8,7 @@ extern "C" {
 }
 
 #[wasm_bindgen_test]
+#[allow(deprecated)]
 fn test_input_element() {
     let element = new_input();
     let location = web_sys::window().unwrap().location().href().unwrap();
@@ -49,8 +50,9 @@ fn test_input_element() {
     assert!(element.disabled(), "Should be disabled");
 
     match element.form() {
-        None => assert!(true, "Shouldn't have a form"),
-        _ => assert!(false, "Shouldn't have a form"),
+        // Shouldn't have a form
+        None => (),
+        _ => unreachable!("Shouldn't have a form"),
     };
 
     assert_eq!(
@@ -179,17 +181,17 @@ fn test_input_element() {
         "The width attribute should be 12"
     );
 
-    assert_eq!(element.will_validate(), false, "Shouldn't validate");
+    assert!(!element.will_validate(), "Shouldn't validate");
     assert_eq!(
         element.validation_message().unwrap(),
         "",
         "Shouldn't have a value"
     );
-    assert_eq!(element.check_validity(), true, "Should be valid");
-    assert_eq!(element.report_validity(), true, "Should be valid");
+    assert!(element.check_validity(), "Should be valid");
+    assert!(element.report_validity(), "Should be valid");
     element.set_custom_validity("Boop"); // Method exists but doesn't impact validity ?!??! TODO look into
-    assert_eq!(element.check_validity(), true, "Should be valid");
-    assert_eq!(element.report_validity(), true, "Should be valid");
+    assert!(element.check_validity(), "Should be valid");
+    assert!(element.report_validity(), "Should be valid");
     /*TODO add tests
     pub fn labels(&self) -> Option<NodeList>
     pub fn select(&self)
diff --git a/crates/web-sys/tests/wasm/menu_element.rs b/crates/web-sys/tests/wasm/menu_element.rs
index 85df4159..c1ed7504 100644
--- a/crates/web-sys/tests/wasm/menu_element.rs
+++ b/crates/web-sys/tests/wasm/menu_element.rs
@@ -12,16 +12,14 @@ fn test_menu_element() {
     let menu = new_menu();
 
     menu.set_compact(true);
-    assert_eq!(
+    assert!(
         menu.compact(),
-        true,
         "Menu should be compact after we set it to be compact."
     );
 
     menu.set_compact(false);
-    assert_eq!(
-        menu.compact(),
-        false,
+    assert!(
+        !menu.compact(),
         "Menu should not be compact after we set it to be not-compact."
     );
 }
diff --git a/crates/web-sys/tests/wasm/olist_element.rs b/crates/web-sys/tests/wasm/olist_element.rs
index 56785c0e..9108bd24 100644
--- a/crates/web-sys/tests/wasm/olist_element.rs
+++ b/crates/web-sys/tests/wasm/olist_element.rs
@@ -12,16 +12,14 @@ fn test_olist_element() {
     let olist = new_olist();
 
     olist.set_reversed(true);
-    assert_eq!(
+    assert!(
         olist.reversed(),
-        true,
         "Olist should be reversed after we set it to be reversed."
     );
 
     olist.set_reversed(false);
-    assert_eq!(
-        olist.reversed(),
-        false,
+    assert!(
+        !olist.reversed(),
         "Olist should not be reversed after we set it to be not reversed."
     );
 
@@ -47,16 +45,14 @@ fn test_olist_element() {
     );
 
     olist.set_compact(true);
-    assert_eq!(
+    assert!(
         olist.compact(),
-        true,
         "Olist should be compact after we set it to be compact."
     );
 
     olist.set_compact(false);
-    assert_eq!(
-        olist.compact(),
-        false,
+    assert!(
+        !olist.compact(),
         "Olist should not be compact after we set it to be not compact."
     );
 }
diff --git a/crates/web-sys/tests/wasm/opfs.rs b/crates/web-sys/tests/wasm/opfs.rs
index 98bd9fc9..db679e4f 100644
--- a/crates/web-sys/tests/wasm/opfs.rs
+++ b/crates/web-sys/tests/wasm/opfs.rs
@@ -26,8 +26,9 @@ async fn create_directory(
     path: &str,
 ) -> FileSystemDirectoryHandle {
     let mut opts = FileSystemGetDirectoryOptions::new();
+    #[allow(deprecated)]
     opts.create(true);
-    JsFuture::from(dir.get_directory_handle_with_options(&path, &opts))
+    JsFuture::from(dir.get_directory_handle_with_options(path, &opts))
         .await
         .expect("Couldn't create test directory")
         .dyn_into::<FileSystemDirectoryHandle>()
@@ -41,6 +42,7 @@ async fn create_test_directory(path: &str) -> FileSystemDirectoryHandle {
 
 async fn create_file(dir: &FileSystemDirectoryHandle, path: &str) {
     let mut opts = FileSystemGetFileOptions::new();
+    #[allow(deprecated)]
     opts.create(true);
     let _ = JsFuture::from(dir.get_file_handle_with_options(path, &opts)).await;
 }
@@ -81,8 +83,9 @@ async fn test_write_to_file() {
 
     // create file
     let mut opts = FileSystemGetFileOptions::new();
+    #[allow(deprecated)]
     opts.create(true);
-    let file = JsFuture::from(test_dir.get_file_handle_with_options(&"test.txt", &opts))
+    let file = JsFuture::from(test_dir.get_file_handle_with_options("test.txt", &opts))
         .await
         .expect("Couldn't create file")
         .dyn_into::<FileSystemFileHandle>()
@@ -95,11 +98,11 @@ async fn test_write_to_file() {
         .unwrap()
         .dyn_into::<FileSystemWritableFileStream>()
         .unwrap();
-    JsFuture::from(write_stream.write_with_str(test_txt).unwrap()).await;
+    let _ = JsFuture::from(write_stream.write_with_str(test_txt).unwrap()).await;
     JsFuture::from(write_stream.close()).await.unwrap();
 
     // Read and check contents
-    let mut values = JsStream::from(test_dir.values())
+    let values = JsStream::from(test_dir.values())
         .map(|x| x.unwrap().dyn_into::<FileSystemFileHandle>().unwrap())
         .collect::<Vec<_>>()
         .await;
@@ -140,17 +143,17 @@ async fn test_entries() {
     assert_eq!(entries.len(), 3);
 
     match entries.get("dir") {
-        Some(handle) => assert!(FileSystemDirectoryHandle::instanceof(&handle)),
+        Some(handle) => assert!(FileSystemDirectoryHandle::instanceof(handle)),
         _ => panic!("Didn't find directory"),
     }
 
     match entries.get("file") {
-        Some(handle) => assert!(FileSystemFileHandle::instanceof(&handle)),
+        Some(handle) => assert!(FileSystemFileHandle::instanceof(handle)),
         _ => panic!("Couldn't find file"),
     }
 
     match entries.get("file2") {
-        Some(handle) => assert!(FileSystemFileHandle::instanceof(&handle)),
+        Some(handle) => assert!(FileSystemFileHandle::instanceof(handle)),
         _ => panic!("Couldn't find file2"),
     }
 }
diff --git a/crates/web-sys/tests/wasm/optgroup_element.rs b/crates/web-sys/tests/wasm/optgroup_element.rs
index 99d72dad..3e6bea5b 100644
--- a/crates/web-sys/tests/wasm/optgroup_element.rs
+++ b/crates/web-sys/tests/wasm/optgroup_element.rs
@@ -12,16 +12,14 @@ fn test_optgroup_element() {
     let optgroup = new_optgroup();
 
     optgroup.set_disabled(true);
-    assert_eq!(
+    assert!(
         optgroup.disabled(),
-        true,
         "Optgroup should be disabled after we set it to be disabled."
     );
 
     optgroup.set_disabled(false);
-    assert_eq!(
-        optgroup.disabled(),
-        false,
+    assert!(
+        !optgroup.disabled(),
         "Optgroup should not be disabled after we set it to be not-disabled."
     );
 
diff --git a/crates/web-sys/tests/wasm/option_element.rs b/crates/web-sys/tests/wasm/option_element.rs
index 10661b29..7c060668 100644
--- a/crates/web-sys/tests/wasm/option_element.rs
+++ b/crates/web-sys/tests/wasm/option_element.rs
@@ -12,16 +12,14 @@ fn test_option_element() {
     .unwrap();
 
     option.set_disabled(true);
-    assert_eq!(
+    assert!(
         option.disabled(),
-        true,
         "Option should be disabled after we set it to be disabled."
     );
 
     option.set_disabled(false);
-    assert_eq!(
-        option.disabled(),
-        false,
+    assert!(
+        !option.disabled(),
         "Option should not be disabled after we set it to be not-disabled."
     );
 
@@ -38,30 +36,26 @@ fn test_option_element() {
     );
 
     option.set_default_selected(true);
-    assert_eq!(
+    assert!(
         option.default_selected(),
-        true,
         "Option should be default_selected after we set it to be default_selected."
     );
 
     option.set_default_selected(false);
-    assert_eq!(
-        option.default_selected(),
-        false,
+    assert!(
+        !option.default_selected(),
         "Option should not be default_selected after we set it to be not default_selected."
     );
 
     option.set_selected(true);
-    assert_eq!(
+    assert!(
         option.selected(),
-        true,
         "Option should be selected after we set it to be selected."
     );
 
     option.set_selected(false);
-    assert_eq!(
-        option.selected(),
-        false,
+    assert!(
+        !option.selected(),
         "Option should not be selected after we set it to be not selected."
     );
 
diff --git a/crates/web-sys/tests/wasm/response.rs b/crates/web-sys/tests/wasm/response.rs
index bd172797..c856be20 100644
--- a/crates/web-sys/tests/wasm/response.rs
+++ b/crates/web-sys/tests/wasm/response.rs
@@ -53,6 +53,7 @@ async fn wasm_instantiate_streaming() {
 
     let headers = Headers::new().unwrap();
     headers.append("Content-Type", "application/wasm").unwrap();
+    #[allow(deprecated)]
     let response = Response::new_with_opt_u8_array_and_init(
         Some(&mut wasm),
         ResponseInit::new().headers(&headers),
diff --git a/crates/web-sys/tests/wasm/rtc_rtp_transceiver_direction.rs b/crates/web-sys/tests/wasm/rtc_rtp_transceiver_direction.rs
index 38b30dd0..67e5a20c 100644
--- a/crates/web-sys/tests/wasm/rtc_rtp_transceiver_direction.rs
+++ b/crates/web-sys/tests/wasm/rtc_rtp_transceiver_direction.rs
@@ -25,6 +25,7 @@ async fn rtc_rtp_transceiver_direction() {
 
     let pc1: RtcPeerConnection = RtcPeerConnection::new().unwrap();
 
+    #[allow(deprecated)]
     let tr1: RtcRtpTransceiver = pc1.add_transceiver_with_str_and_init(
         "audio",
         tr_init.direction(RtcRtpTransceiverDirection::Sendonly),
diff --git a/crates/web-sys/tests/wasm/script_element.rs b/crates/web-sys/tests/wasm/script_element.rs
index f8816bd8..afddb7ce 100644
--- a/crates/web-sys/tests/wasm/script_element.rs
+++ b/crates/web-sys/tests/wasm/script_element.rs
@@ -59,7 +59,7 @@ fn test_script_element() {
     );
 
     assert_eq!(element.text().unwrap(), "", "Shouldn't have text");
-    assert_eq!(element.set_text("text").unwrap(), ());
+    let _: () = element.set_text("text").unwrap();
     assert_eq!(element.text().unwrap(), "text", "Should have text");
 
     assert_eq!(element.event(), "", "Shouldn't have an event");
diff --git a/crates/web-sys/tests/wasm/select_element.rs b/crates/web-sys/tests/wasm/select_element.rs
index 18a1a375..f5fd8653 100644
--- a/crates/web-sys/tests/wasm/select_element.rs
+++ b/crates/web-sys/tests/wasm/select_element.rs
@@ -8,21 +8,20 @@ extern "C" {
 }
 
 #[wasm_bindgen_test]
+#[allow(deprecated)]
 fn test_select_element() {
     // Creates a select with four options.  Options are ["tomato", "potato", "orange", "apple"], where
     // the string is the .value and .text of each option.
     let select = new_select_with_food_opts();
     select.set_autofocus(true);
-    assert_eq!(
+    assert!(
         select.autofocus(),
-        true,
         "Select element should have a true autofocus property."
     );
 
     select.set_autofocus(false);
-    assert_eq!(
-        select.autofocus(),
-        false,
+    assert!(
+        !select.autofocus(),
         "Select element should have a false autofocus property."
     );
 
@@ -34,18 +33,10 @@ fn test_select_element() {
     );
 
     select.set_disabled(true);
-    assert_eq!(
-        select.disabled(),
-        true,
-        "Select element should be disabled."
-    );
+    assert!(select.disabled(), "Select element should be disabled.");
 
     select.set_disabled(false);
-    assert_eq!(
-        select.disabled(),
-        false,
-        "Select element should not be disabled."
-    );
+    assert!(!select.disabled(), "Select element should not be disabled.");
 
     assert!(
         select.form().is_none(),
@@ -53,16 +44,14 @@ fn test_select_element() {
     );
 
     select.set_multiple(false);
-    assert_eq!(
-        select.multiple(),
-        false,
+    assert!(
+        !select.multiple(),
         "Select element should have a false multiple property."
     );
 
     select.set_multiple(true);
-    assert_eq!(
+    assert!(
         select.multiple(),
-        true,
         "Select element should have a true multiple property."
     );
 
@@ -74,18 +63,10 @@ fn test_select_element() {
     );
 
     select.set_required(true);
-    assert_eq!(
-        select.required(),
-        true,
-        "Select element should be required."
-    );
+    assert!(select.required(), "Select element should be required.");
 
     select.set_required(false);
-    assert_eq!(
-        select.required(),
-        false,
-        "Select element should not be required."
-    );
+    assert!(!select.required(), "Select element should not be required.");
 
     select.set_size(432);
     assert_eq!(
@@ -97,7 +78,7 @@ fn test_select_element() {
     // Default type seems to be "select-multiple" for the browsers I tested, but there's no guarantee
     // on this, so let's just make sure we get back something here.
     assert!(
-        select.type_().len() > 0,
+        !select.type_().is_empty(),
         "Select element should have some type."
     );
 
@@ -143,9 +124,8 @@ fn test_select_element() {
     );
 
     // This might be browser dependent, potentially rendering this test useless?  Worked fine in Chrome and Firefox for now.
-    assert_eq!(
+    assert!(
         select.will_validate(),
-        true,
         "Select element should not validate by default."
     );
 
diff --git a/crates/web-sys/tests/wasm/span_element.rs b/crates/web-sys/tests/wasm/span_element.rs
index 490df42a..cc0bd42a 100644
--- a/crates/web-sys/tests/wasm/span_element.rs
+++ b/crates/web-sys/tests/wasm/span_element.rs
@@ -10,5 +10,5 @@ extern "C" {
 #[wasm_bindgen_test]
 fn test_span_element() {
     let _element = new_span();
-    assert!(true, "Span doesn't have an interface");
+    // Span doesn't have an interface
 }
diff --git a/crates/web-sys/tests/wasm/title_element.rs b/crates/web-sys/tests/wasm/title_element.rs
index ebc7aa74..4a139d4f 100644
--- a/crates/web-sys/tests/wasm/title_element.rs
+++ b/crates/web-sys/tests/wasm/title_element.rs
@@ -11,6 +11,6 @@ extern "C" {
 fn title_element() {
     let element = new_title();
     assert_eq!(element.text().unwrap(), "", "Shouldn't have an text");
-    assert_eq!(element.set_text("page text").unwrap(), ());
+    let _: () = element.set_text("page text").unwrap();
     assert_eq!(element.text().unwrap(), "page text", "Should have an text");
 }
diff --git a/crates/web-sys/tests/wasm/whitelisted_immutable_slices.rs b/crates/web-sys/tests/wasm/whitelisted_immutable_slices.rs
index 30d70bf3..9030a161 100644
--- a/crates/web-sys/tests/wasm/whitelisted_immutable_slices.rs
+++ b/crates/web-sys/tests/wasm/whitelisted_immutable_slices.rs
@@ -18,7 +18,7 @@ use web_sys::{
 use web_sys::{WebGl2RenderingContext, WebGlRenderingContext, WebSocket};
 
 // Ensure that our whitelisted WebGlRenderingContext methods compile with immutable slices.
-fn test_webgl_rendering_context_immutable_slices() {
+pub fn test_webgl_rendering_context_immutable_slices() {
     let gl = JsValue::null().unchecked_into::<WebGlRenderingContext>();
 
     gl.vertex_attrib1fv_with_f32_array(0, &[1.]);
@@ -35,7 +35,7 @@ fn test_webgl_rendering_context_immutable_slices() {
     gl.uniform_matrix3fv_with_f32_array(None, false, &[1.]);
     gl.uniform_matrix4fv_with_f32_array(None, false, &[1.]);
 
-    gl.tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array(
+    let _ = gl.tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array(
         0,
         0,
         0,
@@ -46,7 +46,7 @@ fn test_webgl_rendering_context_immutable_slices() {
         0,
         Some(&[1]),
     );
-    gl.tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array(
+    let _ = gl.tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array(
         0,
         0,
         0,
@@ -61,18 +61,18 @@ fn test_webgl_rendering_context_immutable_slices() {
 }
 
 // Ensure that our whitelisted WebGl2RenderingContext methods compile with immutable slices.
-fn test_webgl2_rendering_context_immutable_slices() {
+pub fn test_webgl2_rendering_context_immutable_slices() {
     let gl = JsValue::null().unchecked_into::<WebGl2RenderingContext>();
 
-    gl.tex_image_3d_with_opt_u8_array(0, 0, 0, 0, 0, 0, 0, 0, 0, Some(&[1]));
-    gl.tex_sub_image_3d_with_opt_u8_array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Some(&[1]));
+    let _ = gl.tex_image_3d_with_opt_u8_array(0, 0, 0, 0, 0, 0, 0, 0, 0, Some(&[1]));
+    let _ = gl.tex_sub_image_3d_with_opt_u8_array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Some(&[1]));
     gl.compressed_tex_image_3d_with_u8_array(0, 0, 0, 0, 0, 0, 0, &[1]);
 }
 
 // Ensure that our whitelisted WebSocket methods compile with immutable slices.
-fn test_websocket_immutable_slices() {
+pub fn test_websocket_immutable_slices() {
     let ws = JsValue::null().unchecked_into::<WebSocket>();
-    ws.send_with_u8_array(&[0]);
+    let _ = ws.send_with_u8_array(&[0]);
 }
 
 // Ensure that our whitelisted FileSystemSyncAccessHandle methods compile with immutable slices.
diff --git a/crates/web-sys/tests/wasm/xpath_result.rs b/crates/web-sys/tests/wasm/xpath_result.rs
index 933ac97b..2c907844 100644
--- a/crates/web-sys/tests/wasm/xpath_result.rs
+++ b/crates/web-sys/tests/wasm/xpath_result.rs
@@ -14,7 +14,7 @@ fn test_xpath_result() {
         xpath_result.result_type(),
         XPathResult::UNORDERED_NODE_ITERATOR_TYPE
     );
-    assert_eq!(xpath_result.invalid_iterator_state(), false);
+    assert!(!xpath_result.invalid_iterator_state());
     assert_eq!(
         xpath_result
             .iterate_next()
diff --git a/tests/wasm/classes.rs b/tests/wasm/classes.rs
index e590cf7e..d701e208 100644
--- a/tests/wasm/classes.rs
+++ b/tests/wasm/classes.rs
@@ -533,7 +533,7 @@ mod works_in_module {
     use wasm_bindgen::prelude::wasm_bindgen;
 
     #[wasm_bindgen]
-    pub struct WorksInModule(u32);
+    pub struct WorksInModule(#[allow(dead_code)] u32);
 
     #[wasm_bindgen]
     impl WorksInModule {
diff --git a/tests/wasm/closures.rs b/tests/wasm/closures.rs
index 4cf7b21e..d8bd2e92 100644
--- a/tests/wasm/closures.rs
+++ b/tests/wasm/closures.rs
@@ -499,7 +499,9 @@ fn test_closure_returner() {
     js_test_closure_returner();
 
     #[wasm_bindgen]
-    pub struct ClosureHandle(Closure<ClosureType>);
+    pub struct ClosureHandle {
+        _closure: Closure<ClosureType>,
+    }
 
     #[wasm_bindgen]
     pub struct BadStruct {}
@@ -518,7 +520,7 @@ fn test_closure_returner() {
         Reflect::set(
             &o,
             &JsValue::from("handle"),
-            &JsValue::from(ClosureHandle(some_fn)),
+            &JsValue::from(ClosureHandle { _closure: some_fn }),
         )
         .unwrap();
 
diff --git a/tests/wasm/simple.rs b/tests/wasm/simple.rs
index fdef34c6..5d060ca8 100644
--- a/tests/wasm/simple.rs
+++ b/tests/wasm/simple.rs
@@ -71,6 +71,9 @@ pub fn simple_return_raw_pointer_u8(value: u8) -> *const u8 {
     Box::into_raw(Box::new(value))
 }
 
+/// # Safety
+///
+/// Pointers have to be valid.
 #[wasm_bindgen]
 pub unsafe fn simple_raw_pointers_work(a: *mut u32, b: *const u8) -> *const u32 {
     (*a) = (*b) as u32;
@@ -82,6 +85,9 @@ pub fn simple_return_option_null_pointer() -> Option<*const u32> {
     Some(ptr::null())
 }
 
+/// # Safety
+///
+/// Pointers have to be valid.
 #[wasm_bindgen]
 pub unsafe fn simple_option_raw_pointers_work(
     a: Option<*mut u32>,
@@ -113,11 +119,17 @@ pub fn simple_return_option_non_null(value: u32) -> Option<NonNull<u32>> {
     Some(NonNull::from(Box::leak(Box::new(value))))
 }
 
+/// # Safety
+///
+/// Pointer has to be generated by [`Box::leak()`] on a `Box<u32>`.
 #[wasm_bindgen]
 pub unsafe fn simple_nonnull_work(a: NonNull<u32>) -> u32 {
     *Box::from_raw(a.as_ptr())
 }
 
+/// # Safety
+///
+/// Pointer has to be generated by [`Box::leak()`] on a `Box<u32>`.
 #[wasm_bindgen]
 pub unsafe fn simple_option_nonnull_work(a: Option<NonNull<u32>>) -> Option<u32> {
     a.map(|ptr| *Box::from_raw(ptr.as_ptr()))