Skip to content

Commit

Permalink
support rust-analyzer for board_qemu features
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyuu committed Jul 14, 2022
1 parent 3a3eba4 commit 6791508
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"rust.all_targets": false,
// For Rust Analyzer plugin users:
"rust-analyzer.cargo.target": "riscv64gc-unknown-none-elf",
"rust-analyzer.checkOnSave.allTargets": false
}
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.cargo.features": [
"board_qemu"
]
}
6 changes: 5 additions & 1 deletion easy-fs-fuse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ edition = "2018"
[dependencies]
clap = "2.33.3"
easy-fs = { path = "../easy-fs" }
rand = "0.8.0"
rand = "0.8.0"

[features]
board_qemu = []
board_k210 = []
4 changes: 4 additions & 0 deletions easy-fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ lazy_static = { version = "1.4.0", features = ["spin_no_std"] }

[profile.release]
debug = true

[features]
board_qemu = []
board_k210 = []
4 changes: 4 additions & 0 deletions user/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }

[profile.release]
debug = true

[features]
board_qemu = []
board_k210 = []

0 comments on commit 6791508

Please sign in to comment.