xref: /DragonOS/kernel/Cargo.toml (revision 0dd8ff43325b494ea777dbe6e552fdc77b9dabc8)
1[package]
2name = "dragonos_kernel"
3version = "0.1.0"
4edition = "2021"
5
6# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
8[lib]
9crate-type = ["staticlib"]
10
11# 运行时依赖项
12[dependencies]
13x86 = "0.52.0"
14x86_64 = "0.14.10"
15bitflags = "1.3.2"
16virtio-drivers = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/virtio-drivers.git", rev = "f1d1cbb" }
17# 一个无锁MPSC队列
18thingbuf = { version = "0.1.3", default-features = false, features = ["alloc"] }
19smoltcp = { 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"]}
20# num-traits 0.2.15
21num-traits = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/num-traits.git", rev="1597c1c", default-features = false }
22num = { version = "0.4.0", default-features = false }
23num-derive = "0.3"
24# 一个no_std的hashmap、hashset
25hashbrown = "0.13.2"
26elf = { version = "0.7.2", default-features = false }
27memoffset = "0.9.0"
28atomic_enum = "0.2.0"
29raw-cpuid = "11.0.1"
30acpi = "5.0.0"
31
32# 构建时依赖项
33[build-dependencies]
34bindgen = "0.61.0"
35
36
37[dependencies.lazy_static]
38version = "1.4.0"
39# 由于在no_std环境,而lazy_static依赖了spin库,因此需要指定其使用no_std
40features = ["spin_no_std"]
41
42
43# The release profile, used for `cargo build --release`
44[profile.release]
45debug = false
46
47
48