From 2d40c3f1dc694de97d9646b38fb6281f3697da24 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 19 Jun 2022 02:53:37 +0800 Subject: [PATCH] fix xtask rebuild issue the inclusion of a custom rustflags in the .cargo/config causes rust-analyzer in vscode to always trigger a rebuild of xtask. add a custom "check" directory for vscode. This grows the size of the target directory :( but at least we're not constantly rebuilding xtask. --- .vscode/settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index b3db5c7c9..c7a5c45d7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { "rust-analyzer.checkOnSave.allTargets": false, "rust-analyzer.cargo.target":"riscv32imac-unknown-xous-elf", + "rust-analyzer.checkOnSave.extraArgs": ["--target-dir", "./target/check"] }