tiny_os/kernel/Cargo.toml
Paul Pan a56c481970 feat: split lib/vspace:
1. `addr` move to `utils`
2. prepare to refactor `vspace`

[skip_ci]
2024-05-07 23:50:52 +08:00

40 lines
908 B
TOML

[package]
name = "kernel"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["riscv.board.virt"]
riscv = []
"riscv.pagetable.sv39" = []
"riscv.pagetable.sv48" = []
"riscv.pagetable.sv57" = []
"riscv.riscv64" = ["riscv", "riscv.pagetable.sv39"]
"riscv.board.default" = ["riscv.riscv64"]
"riscv.board.virt" = ["riscv.riscv64"]
[dependencies]
uapi = { path = "../uapi" }
allocator = { path = "../lib/allocator" }
utils = { path = "../lib/utils", default-features = false }
bitflags = "2.5"
cfg-if = "1.0"
fdt = "0.1"
log = "0.4"
num-derive = "0.4"
num-traits = { version = "0.2", default-features = false }
spin = "0.9"
static_assertions = "1.1"
uart_16550 = "0.3"
[target.'cfg(target_arch = "riscv64")'.dependencies]
riscv = { version = "0.11", features = ["s-mode"] }
sbi-rt = { version = "0.0" }