Remove flag that is no longer needed

As of wgpu 0.19.3, this is no longer required.
This commit is contained in:
Hanno Braun 2024-03-04 14:35:04 +01:00
parent 9deb38bbf8
commit 9a30fd8529
2 changed files with 1 additions and 8 deletions

View File

@ -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"]

View File

@ -39,10 +39,7 @@ fn main() -> anyhow::Result<()> {
.arg("--all-features") .arg("--all-features")
.args(["--target", target.triple]) .args(["--target", target.triple])
.args(["-p", crate_]) .args(["-p", crate_])
// Wee need to recreate that `web_sys` cfg here. It's already .env("RUSTFLAGS", "-D warnings");
// specified in `.cargo/config`, but the use of `RUSTFLAGS` here
// overwrites that.
.env("RUSTFLAGS", "-D warnings --cfg=web_sys_unstable_apis");
println!("Running {command:?}"); println!("Running {command:?}");
let status = command.status()?; let status = command.status()?;