[enhance] websocket

This commit is contained in:
YinMo19
2025-04-17 11:42:58 +08:00
parent 81b932b7bf
commit c156d2eef7
4 changed files with 261 additions and 12 deletions

View File

@@ -44,6 +44,13 @@ httparse = "1.5"
base64 = "0.22"
url = "2.2"
sha2 = "0.10"
tokio-tungstenite = {version = "0.26.2", optional = true}
tungstenite = {version = "0.26.2", optional = true}
[features]
default = ["websocket"]
websocket = ["dep:tokio-tungstenite", "dep:tungstenite"]
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
mac_address = "1.1"
@@ -64,4 +71,3 @@ winapi = { version = "0.3", features = ["winuser", "synchapi", "pdh", "memoryapi
[target.'cfg(target_os = "macos")'.dependencies]
osascript = "0.3"