mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-29 04:43:36 +04:00
support rust-analyzer for board_qemu features
This commit is contained in:
parent
e7db766e48
commit
0c55c36ed0
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
|||||||
|
.*/*
|
||||||
|
!.github/*
|
||||||
|
!.vscode/settings.json
|
||||||
.idea
|
.idea
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
target
|
target
|
||||||
|
13
.vscode/settings.json
vendored
Normal file
13
.vscode/settings.json
vendored
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
@ -10,3 +10,7 @@ edition = "2018"
|
|||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
board_qemu = []
|
||||||
|
board_k210 = []
|
Loading…
Reference in New Issue
Block a user