diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..5957a95 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,4 @@ +[build] +rustflags = [ + "--cfg=web_sys_unstable_apis", +] diff --git a/.vscode/settings.json b/.vscode/settings.json index 146bf99..207ddbb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,6 @@ { //"rust-analyzer.cargo.target": "wasm32-unknown-unknown" -} \ No newline at end of file + "rust-analyzer.runnableEnv": { + "RUSTFLAGS": "--cfg=web_sys_unstable_apis" + } +}