support rust-analyzer for board_qemu features
This commit is contained in:
parent
d6ed4dd134
commit
a03f73d2dd
5 changed files with 29 additions and 1 deletions
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"
|
||||||
|
]
|
||||||
|
}
|
|
@ -9,4 +9,8 @@ edition = "2018"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "2.33.3"
|
clap = "2.33.3"
|
||||||
easy-fs = { path = "../easy-fs" }
|
easy-fs = { path = "../easy-fs" }
|
||||||
rand = "0.8.0"
|
rand = "0.8.0"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
board_qemu = []
|
||||||
|
board_k210 = []
|
|
@ -12,3 +12,7 @@ lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
board_qemu = []
|
||||||
|
board_k210 = []
|
|
@ -12,3 +12,7 @@ bitflags = "1.2.1"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
board_qemu = []
|
||||||
|
board_k210 = []
|
Loading…
Add table
Add a link
Reference in a new issue