Cargo.toml 2.0 KB

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