From 9a30fd852985c565b366e1772d07a928096b186f Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 4 Mar 2024 14:35:04 +0100 Subject: [PATCH] Remove flag that is no longer needed As of wgpu 0.19.3, this is no longer required. --- .cargo/config.toml | 4 ---- tools/cross-compiler/src/main.rs | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 489950ee0d..0000000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,4 +0,0 @@ -[build] -# As of wgpu 0.19.1, these are necessary to build for WebGPU. -rustflags = ["--cfg=web_sys_unstable_apis"] -rustdocflags = ["--cfg=web_sys_unstable_apis"] diff --git a/tools/cross-compiler/src/main.rs b/tools/cross-compiler/src/main.rs index 735a65c51a..9f40dd67dc 100644 --- a/tools/cross-compiler/src/main.rs +++ b/tools/cross-compiler/src/main.rs @@ -39,10 +39,7 @@ fn main() -> anyhow::Result<()> { .arg("--all-features") .args(["--target", target.triple]) .args(["-p", crate_]) - // Wee need to recreate that `web_sys` cfg here. It's already - // specified in `.cargo/config`, but the use of `RUSTFLAGS` here - // overwrites that. - .env("RUSTFLAGS", "-D warnings --cfg=web_sys_unstable_apis"); + .env("RUSTFLAGS", "-D warnings"); println!("Running {command:?}"); let status = command.status()?;