mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-17 18:26:48 +00:00
45 lines
1.4 KiB
TOML
45 lines
1.4 KiB
TOML
[package]
|
||
name = "dragonos_kernel"
|
||
version = "0.1.0"
|
||
edition = "2021"
|
||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||
|
||
[lib]
|
||
crate-type = ["staticlib"]
|
||
|
||
# 运行时依赖项
|
||
[dependencies]
|
||
x86 = "0.52.0"
|
||
x86_64 = "0.14.10"
|
||
bitflags = "1.3.2"
|
||
virtio-drivers = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/virtio-drivers.git", rev = "f1d1cbb" }
|
||
# 一个无锁MPSC队列
|
||
thingbuf = { version = "0.1.3", default-features = false, features = ["alloc"] }
|
||
# smoltcp 0.9.1
|
||
smoltcp = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/smoltcp.git", rev = "9027825", default-features = false, features = ["log", "alloc", "socket-raw", "socket-udp", "socket-tcp", "socket-icmp", "socket-dhcpv4", "socket-dns", "proto-ipv4", "proto-ipv6"]}
|
||
# num-traits 0.2.15
|
||
num-traits = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/num-traits.git", rev="1597c1c", default-features = false }
|
||
num = { version = "0.4.0", default-features = false }
|
||
num-derive = "0.3"
|
||
# 一个no_std的hashmap、hashset
|
||
hashbrown = "0.13.2"
|
||
elf = { version = "0.7.2", default-features = false }
|
||
|
||
# 构建时依赖项
|
||
[build-dependencies]
|
||
bindgen = "0.61.0"
|
||
|
||
|
||
[dependencies.lazy_static]
|
||
version = "1.4.0"
|
||
# 由于在no_std环境,而lazy_static依赖了spin库,因此需要指定其使用no_std
|
||
features = ["spin_no_std"]
|
||
|
||
|
||
# The release profile, used for `cargo build --release`
|
||
[profile.release]
|
||
debug = false
|
||
|
||
|