Cargo.toml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. [package]
  2. name = "rustdesk"
  3. version = "1.1.8"
  4. authors = ["rustdesk <info@rustdesk.com>"]
  5. edition = "2018"
  6. build= "build.rs"
  7. description = "A remote control software."
  8. [features]
  9. inline = []
  10. cli = []
  11. use_samplerate = ["samplerate"]
  12. use_rubato = ["rubato"]
  13. use_dasp = ["dasp"]
  14. default = ["use_dasp"]
  15. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  16. [dependencies]
  17. whoami = "1.2"
  18. scrap = { path = "libs/scrap" }
  19. hbb_common = { path = "libs/hbb_common" }
  20. enigo = { path = "libs/enigo" }
  21. sys-locale = "0.1"
  22. serde_derive = "1.0"
  23. serde = "1.0"
  24. serde_json = "1.0"
  25. cfg-if = "1.0"
  26. lazy_static = "1.4"
  27. sha2 = "0.10"
  28. repng = "0.2"
  29. libc = "0.2"
  30. parity-tokio-ipc = { git = "https://github.com/open-trade/parity-tokio-ipc" }
  31. flexi_logger = "0.22"
  32. runas = "0.2"
  33. magnum-opus = { git = "https://github.com/open-trade/magnum-opus" }
  34. dasp = { version = "0.11", features = ["signal", "interpolate-linear", "interpolate"], optional = true }
  35. rubato = { version = "0.10", optional = true }
  36. samplerate = { version = "0.2", optional = true }
  37. async-trait = "0.1"
  38. crc32fast = "1.3"
  39. uuid = { version = "0.8", features = ["v4"] }
  40. clap = "2.34"
  41. rpassword = "5.0"
  42. base64 = "0.13"
  43. [target.'cfg(not(any(target_os = "android")))'.dependencies]
  44. cpal = { git = "https://github.com/open-trade/cpal" }
  45. [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
  46. machine-uid = "0.2"
  47. mac_address = "1.1"
  48. sciter-rs = { git = "https://github.com/open-trade/rust-sciter", branch = "dyn" }
  49. ctrlc = "3.2"
  50. arboard = "2.0"
  51. clipboard-master = "3.1"
  52. [target.'cfg(target_os = "windows")'.dependencies]
  53. systray = { git = "https://github.com/liyue201/systray-rs" }
  54. winapi = { version = "0.3", features = ["winuser"] }
  55. winreg = "0.10"
  56. windows-service = "0.4"
  57. [target.'cfg(target_os = "macos")'.dependencies]
  58. objc = "0.2"
  59. cocoa = "0.24"
  60. dispatch = "0.2"
  61. core-foundation = "0.9"
  62. core-graphics = "0.22"
  63. [target.'cfg(target_os = "linux")'.dependencies]
  64. libpulse-simple-binding = "2.24"
  65. libpulse-binding = "2.25"
  66. rust-pulsectl = { git = "https://github.com/open-trade/pulsectl" }
  67. [target.'cfg(not(any(target_os = "windows", target_os = "android", target_os = "ios")))'.dependencies]
  68. psutil = { version = "3.2", features = [ "process" ], git = "https://github.com/open-trade/rust-psutil" }
  69. [target.'cfg(target_os = "android")'.dependencies]
  70. android_logger = "0.10"
  71. [workspace]
  72. members = ["libs/scrap", "libs/hbb_common", "libs/enigo"]
  73. [package.metadata.winres]
  74. LegalCopyright = "Copyright © 2020"
  75. # this FileDescription overrides package.description
  76. FileDescription = "RustDesk"
  77. [target.'cfg(target_os="windows")'.build-dependencies]
  78. winres = "0.1"
  79. winapi = { version = "0.3", features = [ "winnt" ] }
  80. [build-dependencies]
  81. cc = "1.0"
  82. hbb_common = { path = "libs/hbb_common" }
  83. [dev-dependencies]
  84. hound = "3.4"
  85. [package.metadata.bundle]
  86. name = "RustDesk"
  87. identifier = "com.carriez.rustdesk"
  88. icon = ["32x32.png", "128x128.png", "128x128@2x.png"]
  89. deb_depends = ["libgtk-3-0", "libxcb-randr0", "libxdo3", "libxfixes3", "libxcb-shape0", "libxcb-xfixes0", "libasound2", "libsystemd0", "pulseaudio"]
  90. osx_minimum_system_version = "10.14"
  91. #https://github.com/johnthagen/min-sized-rust
  92. #!!! rembember call "strip target/release/rustdesk"
  93. # which reduce binary size a lot
  94. [profile.release]
  95. #lto = true
  96. #codegen-units = 1
  97. #panic = 'abort'
  98. #opt-level = 'z' # only have smaller size after strip