Files

78 lines
2.4 KiB
TOML
Raw Permalink Normal View History

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