mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
build: run clippy with --all-features (#18115)
This commit is contained in:
parent
a7a804919d
commit
215528f499
2 changed files with 22 additions and 20 deletions
|
@ -13,25 +13,27 @@ use std::borrow::Cow;
|
||||||
use wgpu_types::SurfaceStatus;
|
use wgpu_types::SurfaceStatus;
|
||||||
|
|
||||||
pub fn init_surface(unstable: bool) -> Extension {
|
pub fn init_surface(unstable: bool) -> Extension {
|
||||||
Extension::builder("deno_webgpu_surface")
|
Extension::builder_with_deps(
|
||||||
.dependencies(vec!["deno_webidl", "deno_web", "deno_webgpu"])
|
"deno_webgpu_surface",
|
||||||
.esm(include_js_files!(
|
&["deno_webidl", "deno_web", "deno_webgpu"],
|
||||||
"03_surface.js",
|
)
|
||||||
"04_surface_idl_types.js",
|
.esm(include_js_files!(
|
||||||
))
|
"03_surface.js",
|
||||||
.ops(vec![
|
"04_surface_idl_types.js",
|
||||||
op_webgpu_surface_configure::decl(),
|
))
|
||||||
op_webgpu_surface_get_current_texture::decl(),
|
.ops(vec![
|
||||||
op_webgpu_surface_present::decl(),
|
op_webgpu_surface_configure::decl(),
|
||||||
])
|
op_webgpu_surface_get_current_texture::decl(),
|
||||||
.state(move |state| {
|
op_webgpu_surface_present::decl(),
|
||||||
// TODO: check & possibly streamline this
|
])
|
||||||
// Unstable might be able to be OpMiddleware
|
.state(move |state| {
|
||||||
// let unstable_checker = state.borrow::<super::UnstableChecker>();
|
// TODO: check & possibly streamline this
|
||||||
// let unstable = unstable_checker.unstable;
|
// Unstable might be able to be OpMiddleware
|
||||||
state.put(super::Unstable(unstable));
|
// let unstable_checker = state.borrow::<super::UnstableChecker>();
|
||||||
})
|
// let unstable = unstable_checker.unstable;
|
||||||
.build()
|
state.put(super::Unstable(unstable));
|
||||||
|
})
|
||||||
|
.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct WebGpuSurface(pub wgpu_core::id::SurfaceId);
|
pub struct WebGpuSurface(pub wgpu_core::id::SurfaceId);
|
||||||
|
|
|
@ -135,7 +135,7 @@ async function clippy() {
|
||||||
console.log("clippy");
|
console.log("clippy");
|
||||||
|
|
||||||
const currentBuildMode = buildMode();
|
const currentBuildMode = buildMode();
|
||||||
const cmd = ["clippy", "--all-targets", "--locked"];
|
const cmd = ["clippy", "--all-targets", "--all-features", "--locked"];
|
||||||
|
|
||||||
if (currentBuildMode != "debug") {
|
if (currentBuildMode != "debug") {
|
||||||
cmd.push("--release");
|
cmd.push("--release");
|
||||||
|
|
Loading…
Reference in a new issue