diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..fab9b7a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "rust-analyzer.cargo.cfgs": { + "FASTWAVE_PLATFORM": "TAURI", + // "FASTWAVE_PLATFORM": "BROWSER", + }, + // https://github.com/rustwasm/wasm-bindgen/issues/2339#issuecomment-2147636233 + "rust-analyzer.cargo.extraEnv": { + "RUSTFLAGS": "--cfg=web_sys_unstable_apis" + }, + // to prevent rebuilding from scratch on each change + "rust-analyzer.cargo.target": "wasm32-unknown-unknown" +} diff --git a/test_files/components/rust_decoder/.vscode/settings.json b/test_files/components/rust_decoder/.vscode/settings.json new file mode 100644 index 0000000..b945667 --- /dev/null +++ b/test_files/components/rust_decoder/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "rust-analyzer.check.overrideCommand": [ + "cargo", + "component", + "check", + "--workspace", + "--all-targets", + "--message-format=json" + ], +}