From bf78c21838ea30425eb210ffb5201ef629cba579 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 29 Dec 2024 15:02:11 +0100 Subject: [PATCH] Add line to settings.json to make it easy to get rust-analyzer for wasm --- .vscode/settings.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 681dc12fe15..d4794e0334c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -33,4 +33,8 @@ "--all-features", ], "rust-analyzer.showUnlinkedFileNotification": false, + + // Uncomment the following options and restart rust-analyzer to get it to check code behind `cfg(target_arch=wasm32)`. + // Don't forget to put it in a comment again before committing. + // "rust-analyzer.cargo.target": "wasm32-unknown-unknown", }