Cargo.toml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. # 运行时依赖项
  9. [dependencies]
  10. x86_64 = "0.14.10"
  11. bitflags = "1.3.2"
  12. virtio-drivers = "0.3.0"
  13. # 一个无锁MPSC队列
  14. thingbuf = { version = "0.1.3", default-features = false, features = ["alloc"] }
  15. # smoltcp 0.9.1
  16. smoltcp = { git = "https://github.com/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"]}
  17. # num-traits 0.2.15
  18. num-traits = { git = "https://github.com/DragonOS-Community/num-traits.git", rev="1597c1c", default-features = false }
  19. num = { version = "0.4.0", default-features = false }
  20. num-derive = "0.3"
  21. # 构建时依赖项
  22. [build-dependencies]
  23. bindgen = "0.61.0"
  24. [dependencies.lazy_static]
  25. version = "1.4.0"
  26. # 由于在no_std环境,而lazy_static依赖了spin库,因此需要指定其使用no_std
  27. features = ["spin_no_std"]