Cargo.toml 1.6 KB

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