From 29621029624628686257326ef3bd56949216b6b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kav=C3=ADk?= Date: Sat, 14 Sep 2024 14:32:03 +0200 Subject: [PATCH] settings.json --- .vscode/settings.json | 12 ++++++++++++ .../components/rust_decoder/.vscode/settings.json | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 test_files/components/rust_decoder/.vscode/settings.json 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" + ], +}