diff --git a/ext/webgpu/surface.rs b/ext/webgpu/surface.rs index d20d06bb15..45ac44d038 100644 --- a/ext/webgpu/surface.rs +++ b/ext/webgpu/surface.rs @@ -13,25 +13,27 @@ use std::borrow::Cow; use wgpu_types::SurfaceStatus; pub fn init_surface(unstable: bool) -> Extension { - Extension::builder("deno_webgpu_surface") - .dependencies(vec!["deno_webidl", "deno_web", "deno_webgpu"]) - .esm(include_js_files!( - "03_surface.js", - "04_surface_idl_types.js", - )) - .ops(vec![ - op_webgpu_surface_configure::decl(), - op_webgpu_surface_get_current_texture::decl(), - op_webgpu_surface_present::decl(), - ]) - .state(move |state| { - // TODO: check & possibly streamline this - // Unstable might be able to be OpMiddleware - // let unstable_checker = state.borrow::(); - // let unstable = unstable_checker.unstable; - state.put(super::Unstable(unstable)); - }) - .build() + Extension::builder_with_deps( + "deno_webgpu_surface", + &["deno_webidl", "deno_web", "deno_webgpu"], + ) + .esm(include_js_files!( + "03_surface.js", + "04_surface_idl_types.js", + )) + .ops(vec![ + op_webgpu_surface_configure::decl(), + op_webgpu_surface_get_current_texture::decl(), + op_webgpu_surface_present::decl(), + ]) + .state(move |state| { + // TODO: check & possibly streamline this + // Unstable might be able to be OpMiddleware + // let unstable_checker = state.borrow::(); + // let unstable = unstable_checker.unstable; + state.put(super::Unstable(unstable)); + }) + .build() } pub struct WebGpuSurface(pub wgpu_core::id::SurfaceId); diff --git a/tools/lint.js b/tools/lint.js index 699341692a..3e62bb844a 100755 --- a/tools/lint.js +++ b/tools/lint.js @@ -135,7 +135,7 @@ async function clippy() { console.log("clippy"); const currentBuildMode = buildMode(); - const cmd = ["clippy", "--all-targets", "--locked"]; + const cmd = ["clippy", "--all-targets", "--all-features", "--locked"]; if (currentBuildMode != "debug") { cmd.push("--release");