For linux platform, add rustls support

This commit is contained in:
yuluo
2024-04-11 00:45:27 +08:00
parent 348890ae88
commit ff72cbf9a9
4 changed files with 197 additions and 25 deletions

View File

@@ -40,14 +40,19 @@ toml = "0.7"
uuid = { version = "1.3", features = ["v4"] }
# crash, versions >= 0.29.1 are affected by #GuillaumeGomez/sysinfo/1052
sysinfo = { git = "https://github.com/rustdesk-org/sysinfo" }
thiserror = "1.0.30"
httparse = "1.5.1"
base64 = "0.21.5"
url = "2.2.2"
tokio-native-tls ="0.3.1"
thiserror = "1.0"
httparse = "1.5"
base64 = "0.22"
url = "2.2"
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
mac_address = "1.1"
machine-uid = { git = "https://github.com/21pages/machine-uid" }
[target.'cfg(not(any(target_os = "macos", target_os = "windows")))'.dependencies]
tokio-rustls = "0.26"
webpki-roots = "0.26"
rustls-pki-types = "1.4"
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
tokio-native-tls ="0.3"
[features]
quic = []