diff --git a/Cargo.toml b/Cargo.toml index 53b5733..00e30f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,14 +46,15 @@ httparse = "1.10" base64 = "0.22" url = "2.5" sha2 = "0.10" -tokio-tungstenite = { version = "0.26.2" } -tungstenite = { version = "0.26.2" } - +tokio-tungstenite = { version = "0.26" } +tungstenite = { version = "0.26" } +whoami = "1.5" [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies] mac_address = "1.1" default_net = { git = "https://github.com/rustdesk-org/default_net" } machine-uid = { git = "https://github.com/rustdesk-org/machine-uid" } + [target.'cfg(not(any(target_os = "macos", target_os = "windows")))'.dependencies] tokio-rustls = { version = "0.26", features = [ "logging", @@ -64,7 +65,6 @@ rustls-platform-verifier = "0.5" rustls-pki-types = "1.11" [target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies] tokio-native-tls = "0.3" -whoami = "1.5.0" [build-dependencies] protobuf-codegen = { version = "3.7" } diff --git a/src/lib.rs b/src/lib.rs index b1770f2..3f24fdf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -60,6 +60,7 @@ pub use flexi_logger; pub mod websocket; pub mod stream; pub use stream::Stream; +pub use whoami; pub type SessionID = uuid::Uuid;