tiny_os/kernel/Cargo.toml

45 lines
1.1 KiB
TOML
Raw Normal View History

2024-02-16 19:22:06 +08:00
[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.riscv64"]
2024-02-16 19:22:06 +08:00
2024-04-09 01:11:54 +08:00
legacy = ["utils/legacy", "vspace/legacy"]
riscv = []
2024-02-16 19:22:06 +08:00
"riscv.pagetable.sv32" = []
"riscv.pagetable.sv39" = []
"riscv.pagetable.sv48" = []
"riscv.pagetable.sv57" = []
"riscv.riscv64" = ["riscv", "riscv.pagetable.sv39"]
"riscv.riscv32" = ["riscv", "riscv.pagetable.sv32", "legacy"]
"riscv.board.default" = []
"riscv.board.virt" = []
2024-02-16 19:22:06 +08:00
[dependencies]
2024-04-09 01:11:54 +08:00
allocator = { path = "../lib/allocator" }
2024-03-20 21:11:27 +08:00
api = { path = "../api" }
2024-04-09 01:11:54 +08:00
utils = { path = "../lib/utils", default-features = false }
vspace = { path = "../lib/vspace", default-features = false }
2024-03-20 21:11:27 +08:00
2024-04-09 01:11:54 +08:00
bitflags = "2.5"
2024-03-26 00:05:55 +08:00
cfg-if = "1.0"
2024-03-23 16:45:24 +08:00
fdt = "0.1"
2024-02-16 19:22:06 +08:00
log = "0.4"
2024-03-20 21:11:27 +08:00
num-derive = "0.4"
num-traits = { version = "0.2", default-features = false }
2024-03-26 00:05:55 +08:00
spin = "0.9"
static_assertions = "1.1"
2024-02-16 19:22:06 +08:00
uart_16550 = "0.3"
[target.'cfg(any(target_arch = "riscv32", target_arch = "riscv64"))'.dependencies]
riscv = { version = "0.11", features = ["s-mode"] }
sbi-rt = { version = "0.0" }