xref: /DragonOS/kernel/Cargo.toml (revision 3c82aa56d1b784ea7371100b3e906365be8332fd)
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
9[lib]
10crate-type = ["staticlib"]
11
12[workspace]
13members = [ "src/libs/intertrait" ]
14
15# 运行时依赖项
16[dependencies]
17x86 = "0.52.0"
18x86_64 = "0.14.10"
19bitflags = "1.3.2"
20virtio-drivers = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/virtio-drivers.git", rev = "f1d1cbb" }
21# 一个无锁MPSC队列
22thingbuf = { version = "0.1.3", default-features = false, features = ["alloc"] }
23smoltcp = { 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"]}
24# num-traits 0.2.15
25num-traits = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/num-traits.git", rev="1597c1c", default-features = false }
26num = { version = "0.4.0", default-features = false }
27num-derive = "0.3"
28# 一个no_std的hashmap、hashset
29hashbrown = "0.13.2"
30elf = { version = "0.7.2", default-features = false }
31memoffset = "0.9.0"
32atomic_enum = "0.2.0"
33raw-cpuid = "11.0.1"
34acpi = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/acpi-rs.git", rev = "fb69243dcf" }
35intertrait = { path = "src/libs/intertrait" }
36linkme = "0.2"
37ida = { path = "src/libs/ida" }
38
39# 构建时依赖项
40[build-dependencies]
41bindgen = "0.61.0"
42
43
44[dependencies.lazy_static]
45version = "1.4.0"
46# 由于在no_std环境,而lazy_static依赖了spin库,因此需要指定其使用no_std
47features = ["spin_no_std"]
48
49
50# The release profile, used for `cargo build --release`
51[profile.release]
52debug = false
53
54