mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
43 lines
1.1 KiB
TOML
43 lines
1.1 KiB
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]
|
|
allocator = { path = "../lib/allocator" }
|
|
cpio = { path = "../lib/cpio" }
|
|
tracer = { path = "../lib/tracer" }
|
|
uapi = { path = "../uapi" }
|
|
utils = { path = "../lib/utils", default-features = false }
|
|
|
|
bitflags = "2.6"
|
|
cfg-if = "1.0"
|
|
elf = { version = "0.7", default-features = false }
|
|
fdt = { git = "https://github.com/panpaul/fdt.git" } # fork from upstream
|
|
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.3" }
|