From 5b7c48e43d429525cf2b1f4632a607f9bf893aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Sat, 2 Mar 2024 00:56:20 +0100 Subject: [PATCH] web: No longer set the `web_sys_unstable_apis` config variable --- .cargo/config.toml | 8 -------- web/packages/core/tools/build_wasm.js | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 404470391..c1c64baf8 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,11 +1,3 @@ -[target.'cfg(all())'] -# NOTE that the web build overrides this setting in package.json via the RUSTFLAGS environment variable -rustflags = [ - # We need to specify this flag for all targets because Clippy checks all of our code against all targets - # and our web code does not compile without this flag - "--cfg=web_sys_unstable_apis", -] - [target.x86_64-pc-windows-msvc] # Use the LLD linker, it should be faster than the default. # See: https://github.com/rust-lang/rust/issues/71520 diff --git a/web/packages/core/tools/build_wasm.js b/web/packages/core/tools/build_wasm.js index 124623b0b..efc045b4e 100644 --- a/web/packages/core/tools/build_wasm.js +++ b/web/packages/core/tools/build_wasm.js @@ -60,7 +60,7 @@ function cargoBuild({ profile, features, rustFlags }) { }); } function buildWasm(profile, filename, optimise, extensions, wasmSource) { - const rustFlags = ["--cfg=web_sys_unstable_apis", "-Aunknown_lints"]; + const rustFlags = ["-Aunknown_lints"]; const wasmBindgenFlags = []; const wasmOptFlags = []; const flavor = extensions ? "extensions" : "vanilla";