Cargo.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [package]
  2. name = "hbbs"
  3. version = "1.1.14"
  4. authors = ["rustdesk <info@rustdesk.com>"]
  5. edition = "2021"
  6. build = "build.rs"
  7. default-run = "hbbs"
  8. [[bin]]
  9. name = "hbbr"
  10. path = "src/hbbr.rs"
  11. [[bin]]
  12. name = "rustdesk-utils"
  13. path = "src/utils.rs"
  14. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  15. [dependencies]
  16. hbb_common = { path = "libs/hbb_common" }
  17. serde_derive = "1.0"
  18. serde = "1.0"
  19. serde_json = "1.0"
  20. lazy_static = "1.4"
  21. clap = "2"
  22. rust-ini = "0.18"
  23. minreq = { version = "2.4", features = ["punycode"] }
  24. machine-uid = "0.2"
  25. mac_address = "1.1.5"
  26. whoami = "1.2"
  27. base64 = "0.13"
  28. axum = { version = "0.5", features = ["headers"] }
  29. sqlx = { version = "0.6", features = [ "runtime-tokio-rustls", "sqlite", "macros", "chrono", "json" ] }
  30. deadpool = "0.8"
  31. async-trait = "0.1"
  32. async-speed-limit = { git = "https://github.com/open-trade/async-speed-limit" }
  33. uuid = { version = "1.0", features = ["v4"] }
  34. bcrypt = "0.13"
  35. chrono = "0.4"
  36. jsonwebtoken = "8"
  37. headers = "0.3"
  38. once_cell = "1.8"
  39. sodiumoxide = "0.2"
  40. tokio-tungstenite = "0.17"
  41. tungstenite = "0.17"
  42. regex = "1.4"
  43. tower-http = { version = "0.3", features = ["fs", "trace", "cors"] }
  44. http = "0.2"
  45. flexi_logger = { version = "0.22", features = ["async", "use_chrono_for_offset", "dont_minimize_extra_stacks"] }
  46. ipnetwork = "0.20"
  47. local-ip-address = "0.5.1"
  48. dns-lookup = "1.0.8"
  49. ping = "0.4.0"
  50. [target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
  51. # https://github.com/rustdesk/rustdesk-server-pro/issues/189, using native-tls for better tls support
  52. reqwest = { git = "https://github.com/rustdesk-org/reqwest", features = ["blocking", "socks", "json", "native-tls", "gzip"], default-features=false }
  53. [target.'cfg(not(any(target_os = "macos", target_os = "windows")))'.dependencies]
  54. reqwest = { git = "https://github.com/rustdesk-org/reqwest", features = ["blocking", "socks", "json", "rustls-tls", "rustls-tls-native-roots", "gzip"], default-features=false }
  55. [build-dependencies]
  56. hbb_common = { path = "libs/hbb_common" }
  57. [workspace]
  58. members = ["libs/hbb_common"]
  59. exclude = ["ui"]
  60. #https://github.com/johnthagen/min-sized-rust
  61. #https://doc.rust-lang.org/cargo/reference/profiles.html#default-profiles
  62. [profile.release]
  63. lto = true
  64. codegen-units = 1
  65. panic = 'abort'
  66. strip = true
  67. #opt-level = 'z' # only have smaller size after strip # Default is 3, better performance
  68. #rpath = true # Not needed