diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 489950ee0..000000000 --- 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 735a65c51..9f40dd67d 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()?;