Cargo.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [package]
  2. name = "clipboard"
  3. version = "0.1.0"
  4. edition = "2021"
  5. build = "build.rs"
  6. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  7. [build-dependencies]
  8. cc = "1.0"
  9. [features]
  10. default = []
  11. unix-file-copy-paste = [
  12. "dep:x11rb",
  13. "dep:x11-clipboard",
  14. "dep:rand",
  15. "dep:fuser",
  16. "dep:libc",
  17. "dep:dashmap",
  18. "dep:percent-encoding",
  19. "dep:utf16string",
  20. "dep:once_cell",
  21. "dep:cacao"
  22. ]
  23. [dependencies]
  24. thiserror = "1.0"
  25. lazy_static = "1.4"
  26. serde = "1.0"
  27. serde_derive = "1.0"
  28. hbb_common = { path = "../hbb_common" }
  29. parking_lot = {version = "0.12"}
  30. [target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
  31. rand = {version = "0.8", optional = true}
  32. fuser = {version = "0.13", optional = true}
  33. libc = {version = "0.2", optional = true}
  34. dashmap = {version ="5.5", optional = true}
  35. utf16string = {version = "0.2", optional = true}
  36. once_cell = {version = "1.18", optional = true}
  37. [target.'cfg(target_os = "linux")'.dependencies]
  38. percent-encoding = {version ="2.3", optional = true}
  39. x11-clipboard = {git="https://github.com/clslaid/x11-clipboard", branch = "feat/store-batch", optional = true}
  40. x11rb = {version = "0.12", features = ["all-extensions"], optional = true}
  41. [target.'cfg(target_os = "macos")'.dependencies]
  42. cacao = {git="https://github.com/clslaid/cacao", branch = "feat/set-file-urls", optional = true}