Cargo.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [package]
  2. name = "dlibc"
  3. version = "0.1.0"
  4. authors = ["The Rust Project Developers"]
  5. license = "MIT OR Apache-2.0"
  6. readme = "README.md"
  7. repository = "https://github.com/rust-lang/libc"
  8. homepage = "https://github.com/rust-lang/libc"
  9. documentation = "https://docs.rs/libc/"
  10. keywords = ["libc", "ffi", "bindings", "operating", "system"]
  11. categories = ["external-ffi-bindings", "no-std", "os"]
  12. build = "build.rs"
  13. exclude = ["/ci/*", "/.github/*", "/.cirrus.yml", "/triagebot.toml"]
  14. description = """
  15. Raw FFI bindings to platform libraries like libc.
  16. """
  17. #[lib]
  18. #name = "dlibc"
  19. #crate-type = ["staticlib"]
  20. [build-dependencies]
  21. cbindgen = "0.24.3"
  22. cc = "1.0.25"
  23. [package.metadata.docs.rs]
  24. features = ["const-extern-fn", "extra_traits"]
  25. default-target = "x86_64-unknown-dragonos"
  26. cargo-args = ["-Zbuild-std=core,alloc,compiler_builtins"]
  27. [dependencies]
  28. cbitset = "0.1.0"
  29. rustc-std-workspace-core = { version = "1.0.0", optional = true }
  30. rand = { version = "0.5.5", default-features = false }
  31. core_io = { path = "core_io", features = ["collections"] }
  32. lazy_static = { version = "1.4.0", default-features = false, features = ["spin_no_std"] }
  33. unicode-width = "0.1"
  34. memchr = { version = "2.2.0", default-features = false }
  35. posix-regex = { path = "posix-regex", features = ["no_std"] }
  36. num-traits = { version = "0.2.16", default-features = false }
  37. [dependencies.goblin]
  38. version = "0.0.21"
  39. default-features = false
  40. features = ["elf32", "elf64", "endian_fd"]
  41. [target.'cfg(target_os = "dragonos")'.dependencies]
  42. # Development
  43. dragonos-dsc = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/dragonos-dsc.git", rev = "aa61cb0109" }
  44. [features]
  45. default = ["std"]
  46. std = []
  47. align = []
  48. rustc-dep-of-std = ['align', 'rustc-std-workspace-core']
  49. extra_traits = []
  50. const-extern-fn = []
  51. # use_std is deprecated, use `std` instead
  52. use_std = ['std']