xref: /DragonOS/kernel/Cargo.toml (revision b7b843beddea12cdedda90f6129b7c9980876112)
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 = "5.0.0"
35intertrait = { path = "src/libs/intertrait" }
36linkme = "0.2"
37
38# 构建时依赖项
39[build-dependencies]
40bindgen = "0.61.0"
41
42
43[dependencies.lazy_static]
44version = "1.4.0"
45# 由于在no_std环境,而lazy_static依赖了spin库,因此需要指定其使用no_std
46features = ["spin_no_std"]
47
48
49# The release profile, used for `cargo build --release`
50[profile.release]
51debug = false
52
53
54