tokio feature flags
@@ -31,7 +31,7 @@ proxy = ["hyper", "hyper-rustls/webpki-tokio", "percent-encoding", "tracing"]
serve-static = ["chrono", "mime", "percent-encoding", "tokio", "serde", "serde_json"]
session = ["async-session", "cookie", "tracing"]
sse = ["futures-util", "pin-project", "tokio", "serde", "serde_json", "tracing"]
-timeout = []
+timeout = ["tokio/macros"]
ws = ["futures-util", "tokio", "tokio-tungstenite", "tracing"]
[dependencies]
@@ -60,7 +60,7 @@ salvo_core = { version = "0.24", default-features = false, path = "../core" }
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }
sha2 = { version = "0.10", optional = true }
-tokio = { version = "1", features = ["fs", "macros", "sync", "time"], optional = true }
+tokio = { version = "1", optional = true }
tokio-stream = { version = "0.1", optional = true }
tokio-tungstenite = { version = "0.17", default-features = false, optional = true }
tokio-util = { version = "0.7", features = ["io"], optional = true }
