Revert "web: No longer set the `web_sys_unstable_apis` config variable"
This reverts commit 5b7c48e43d
.
Co-authored-by: TÖRÖK Attila <torokati44@gmail.com>
This commit is contained in:
parent
35f5227e2d
commit
e75851f4fa
|
@ -1,3 +1,11 @@
|
|||
[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
|
||||
|
|
|
@ -84,7 +84,7 @@ function buildWasm(
|
|||
extensions: boolean,
|
||||
wasmSource: string,
|
||||
) {
|
||||
const rustFlags = ["-Aunknown_lints"];
|
||||
const rustFlags = ["--cfg=web_sys_unstable_apis", "-Aunknown_lints"];
|
||||
const wasmBindgenFlags = [];
|
||||
const wasmOptFlags = [];
|
||||
const flavor = extensions ? "extensions" : "vanilla";
|
||||
|
|
Loading…
Reference in New Issue