fix cargo check environment for the latest vscode

seems they refactored the way rust workspaces are handled and
deprecated previous keywords and added some other features that
break cargo check.

This overrides all of that and manually configures cargo
check to be harmonized with the hardware target environment.
This commit is contained in:
bunnie 2023-05-29 00:40:17 +08:00
parent 1b29ea0421
commit 86459b02c5

14
.vscode/settings.json vendored
View file

@ -1,7 +1,15 @@
{
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.cargo.target":"riscv32imac-unknown-xous-elf",
"rust-analyzer.checkOnSave.extraArgs": ["--target-dir", "./target/check"],
"rust-analyzer.check.overrideCommand":[
"cargo",
"check",
"--target", "riscv32imac-unknown-xous-elf",
"--target-dir", "target/analyzer",
"--features", "precursor",
"--features", "utralib/precursor",
"--features", "utralib/precursor-pvt",
"--message-format", "json"
],
"rust-analyzer.server.extraEnv": {
"XOUS_SVD_FILE": "../precursors/soc.svd"
},
@ -13,7 +21,7 @@
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/Thumbs.db": true
},
"cSpell.language": "en,fr"
}