xref: /DragonOS/kernel/Cargo.toml (revision f4082b86b15989a1d43e62050c6ba9b363c91ece)
12813126eSlogin[package]
22813126eSloginname = "dragonos_kernel"
32813126eSloginversion = "0.1.0"
42813126eSloginedition = "2021"
52813126eSlogin
62813126eSlogin# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
72813126eSlogin
8fba56231SLoGin
92813126eSlogin[lib]
102813126eSlogincrate-type = ["staticlib"]
112813126eSlogin
12fba56231SLoGin[workspace]
13fba56231SLoGinmembers = [ "src/libs/intertrait" ]
14fba56231SLoGin
152aaf7808Slogin# 运行时依赖项
162813126eSlogin[dependencies]
17bacd691cSloginx86 = "0.52.0"
182813126eSloginx86_64 = "0.14.10"
19004e86ffSloginbitflags = "1.3.2"
2040314b30SXiaoye Zhengbitfield-struct = "0.5.3"
21d6fd9c1eSLoGinvirtio-drivers = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/virtio-drivers.git", rev = "f1d1cbb" }
220d48c3c9Slogin# 一个无锁MPSC队列
230d48c3c9Sloginthingbuf = { version = "0.1.3", default-features = false, features = ["alloc"] }
24d6fd9c1eSLoGinsmoltcp = { 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"]}
254454d1a2Slogin# num-traits 0.2.15
26d6fd9c1eSLoGinnum-traits = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/num-traits.git", rev="1597c1c", default-features = false }
274454d1a2Sloginnum = { version = "0.4.0", default-features = false }
284454d1a2Sloginnum-derive = "0.3"
2940fe15e0SLoGin# 一个no_std的hashmap、hashset
3040fe15e0SLoGinhashbrown = "0.13.2"
3140fe15e0SLoGinelf = { version = "0.7.2", default-features = false }
321496ba7bSLoGinmemoffset = "0.9.0"
33863a3cffSLoGinatomic_enum = "0.2.0"
347ae679ddSLoGinraw-cpuid = "11.0.1"
357eda31b2SLoGinacpi = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/acpi-rs.git", rev = "fb69243dcf" }
36fba56231SLoGinintertrait = { path = "src/libs/intertrait" }
37fba56231SLoGinlinkme = "0.2"
38a03c4f9dSLoGinida = { path = "src/libs/ida" }
392813126eSlogin
402aaf7808Slogin# 构建时依赖项
412813126eSlogin[build-dependencies]
422813126eSloginbindgen = "0.61.0"
43d4f3de93Slogin
44e0dfd4d5Shanjiezhou
45c2481452Shoumkh[dependencies.lazy_static]
46c2481452Shoumkhversion = "1.4.0"
47c2481452Shoumkh# 由于在no_std环境,而lazy_static依赖了spin库,因此需要指定其使用no_std
48c2481452Shoumkhfeatures = ["spin_no_std"]
49c2481452Shoumkh
5040314b30SXiaoye Zheng# The development profile, used for `cargo build`
5140314b30SXiaoye Zheng[profile.dev]
5240314b30SXiaoye Zheng# opt-level = 0  # Controls the --opt-level the compiler builds with
5340314b30SXiaoye Zhengdebug = true   # Controls whether the compiler passes `-g`
54*f4082b86SLoGin
5540fe15e0SLoGin# The release profile, used for `cargo build --release`
5640fe15e0SLoGin[profile.release]
5740fe15e0SLoGindebug = false
5840fe15e0SLoGin
59