xref: /DragonOS/kernel/Cargo.toml (revision ad1d649eddee4aa8ac81b2f44bc99da462a6a813)
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"
20bitfield-struct = "0.5.3"
21virtio-drivers = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/virtio-drivers.git", rev = "f1d1cbb" }
22# 一个无锁MPSC队列
23thingbuf = { version = "0.1.3", default-features = false, features = ["alloc"] }
24smoltcp = { 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"]}
25# num-traits 0.2.15
26num-traits = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/num-traits.git", rev="1597c1c", default-features = false }
27num = { version = "0.4.0", default-features = false }
28num-derive = "0.3"
29# 一个no_std的hashmap、hashset
30hashbrown = "0.13.2"
31elf = { version = "0.7.2", default-features = false }
32memoffset = "0.9.0"
33atomic_enum = "0.2.0"
34raw-cpuid = "11.0.1"
35acpi = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/acpi-rs.git", rev = "fb69243dcf" }
36intertrait = { path = "src/libs/intertrait" }
37linkme = "0.2"
38ida = { path = "src/libs/ida" }
39
40# 构建时依赖项
41[build-dependencies]
42bindgen = "0.61.0"
43
44
45[dependencies.lazy_static]
46version = "1.4.0"
47# 由于在no_std环境,而lazy_static依赖了spin库,因此需要指定其使用no_std
48features = ["spin_no_std"]
49
50# The development profile, used for `cargo build`
51[profile.dev]
52# opt-level = 0  # Controls the --opt-level the compiler builds with
53debug = true   # Controls whether the compiler passes `-g`
54
55# The release profile, used for `cargo build --release`
56[profile.release]
57debug = false
58
59