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]
|
2024-04-12 23:11:21 +08:00
|
|
|
default = ["riscv.board.virt"]
|
2024-04-08 16:23:10 +08:00
|
|
|
|
2024-04-01 15:37:47 +08:00
|
|
|
riscv = []
|
2024-02-16 19:22:06 +08:00
|
|
|
|
2024-04-01 15:37:47 +08:00
|
|
|
"riscv.pagetable.sv39" = []
|
|
|
|
"riscv.pagetable.sv48" = []
|
|
|
|
"riscv.pagetable.sv57" = []
|
|
|
|
|
|
|
|
"riscv.riscv64" = ["riscv", "riscv.pagetable.sv39"]
|
|
|
|
|
2024-04-12 23:11:21 +08:00
|
|
|
"riscv.board.default" = ["riscv.riscv64"]
|
|
|
|
"riscv.board.virt" = ["riscv.riscv64"]
|
2024-02-16 19:22:06 +08:00
|
|
|
|
|
|
|
[dependencies]
|
2024-04-09 01:11:54 +08:00
|
|
|
allocator = { path = "../lib/allocator" }
|
2024-06-14 15:36:55 +08:00
|
|
|
tracer = { path = "../lib/tracer" }
|
|
|
|
uapi = { path = "../uapi" }
|
2024-04-09 01:11:54 +08:00
|
|
|
utils = { path = "../lib/utils", 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"
|
2024-04-01 15:37:47 +08:00
|
|
|
|
2024-04-12 23:11:21 +08:00
|
|
|
[target.'cfg(target_arch = "riscv64")'.dependencies]
|
2024-04-01 15:37:47 +08:00
|
|
|
riscv = { version = "0.11", features = ["s-mode"] }
|
|
|
|
sbi-rt = { version = "0.0" }
|