support rust-analyzer for board_qemu features

This commit is contained in:
Yu Chen 2022-07-14 09:59:06 +08:00
parent d6ed4dd134
commit a03f73d2dd
5 changed files with 29 additions and 1 deletions

13
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,13 @@
{
// Prevent "can't find crate for `test`" error on no_std
// Ref: https://github.com/rust-lang/vscode-rust/issues/729
// For vscode-rust plugin users:
"rust.target": "riscv64gc-unknown-none-elf",
"rust.all_targets": false,
// For Rust Analyzer plugin users:
"rust-analyzer.cargo.target": "riscv64gc-unknown-none-elf",
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.cargo.features": [
"board_qemu"
]
}