Cargo.toml 639 B

1234567891011121314151617181920212223242526272829
  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.2.0"
  13. # 一个无锁MPSC队列
  14. thingbuf = { version = "0.1.3", default-features = false, features = ["alloc"] }
  15. # 构建时依赖项
  16. [build-dependencies]
  17. bindgen = "0.61.0"
  18. [dependencies.lazy_static]
  19. version = "1.4.0"
  20. # 由于在no_std环境,而lazy_static依赖了spin库,因此需要指定其使用no_std
  21. features = ["spin_no_std"]