Skip to content

Commit 6b0d8e3

Browse files
committed
support rust-analyzer for board_qemu features
1 parent 6a506a5 commit 6b0d8e3

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
"rust.all_targets": false,
77
// For Rust Analyzer plugin users:
88
"rust-analyzer.cargo.target": "riscv64gc-unknown-none-elf",
9-
"rust-analyzer.checkOnSave.allTargets": false
10-
}
9+
"rust-analyzer.checkOnSave.allTargets": false,
10+
"rust-analyzer.cargo.features": [
11+
"board_qemu"
12+
]
13+
}

easy-fs-fuse/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ edition = "2018"
99
[dependencies]
1010
clap = "2.33.3"
1111
easy-fs = { path = "../easy-fs" }
12-
rand = "0.8.0"
12+
rand = "0.8.0"
13+
14+
[features]
15+
board_qemu = []
16+
board_k210 = []

easy-fs/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
1212

1313
[profile.release]
1414
debug = true
15+
16+
[features]
17+
board_qemu = []
18+
board_k210 = []

user/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
1313

1414
[profile.release]
1515
debug = true
16+
17+
[features]
18+
board_qemu = []
19+
board_k210 = []

0 commit comments

Comments
 (0)