Cargo.toml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 = [
  10. "crates/*",
  11. "src/libs/intertrait"
  12. ]
  13. [features]
  14. default = ["backtrace"]
  15. # 内核栈回溯
  16. backtrace = []
  17. # 运行时依赖项
  18. [dependencies]
  19. x86 = "0.52.0"
  20. x86_64 = "0.14.10"
  21. bit_field = "0.10"
  22. bitflags = "1.3.2"
  23. bitfield-struct = "0.5.3"
  24. virtio-drivers = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/virtio-drivers.git", rev = "f1d1cbb" }
  25. 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"]}
  26. # num-traits 0.2.15
  27. num-traits = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/num-traits.git", rev="1597c1c", default-features = false }
  28. num = { version = "0.4.0", default-features = false }
  29. num-derive = "0.3"
  30. # 一个no_std的hashmap、hashset
  31. hashbrown = "0.13.2"
  32. elf = { version = "0.7.2", default-features = false }
  33. atomic_enum = "0.2.0"
  34. raw-cpuid = "11.0.1"
  35. acpi = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/acpi-rs.git", rev = "fb69243dcf" }
  36. intertrait = { path = "src/libs/intertrait" }
  37. linkme = "0.2"
  38. ida = { path = "src/libs/ida" }
  39. mini-backtrace = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/mini-backtrace.git", rev = "ba98506685" }
  40. klog_types = { path = "crates/klog_types" }
  41. kdepends = { path = "crates/kdepends" }
  42. # 构建时依赖项
  43. [build-dependencies]
  44. bindgen = "0.61.0"
  45. cc = { version = "1.0.83", features = ["parallel"] }
  46. [dependencies.lazy_static]
  47. version = "1.4.0"
  48. # 由于在no_std环境,而lazy_static依赖了spin库,因此需要指定其使用no_std
  49. features = ["spin_no_std"]
  50. # The development profile, used for `cargo build`
  51. [profile.dev]
  52. # opt-level = 0 # Controls the --opt-level the compiler builds with
  53. debug = true # Controls whether the compiler passes `-g`
  54. # The release profile, used for `cargo build --release`
  55. [profile.release]
  56. debug = false