From 6db4400770fd93b805f786048abdb34a8a12bd0a Mon Sep 17 00:00:00 2001 From: tottoto Date: Sun, 17 Aug 2025 07:52:17 +0900 Subject: [PATCH] deps: make futures-channel optional dependency --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 23a36331..7507d788 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ all-features = true async-compression = { version = "0.4.5", features = ["tokio"], optional = true } bytes = "1.0" futures-util = { version = "0.3", default-features = false, features = ["sink"] } -futures-channel = { version = "0.3.17", features = ["sink"]} +futures-channel = { version = "0.3.17", features = ["sink"], optional = true } headers = "0.4" http = "1" http-body = "1" @@ -65,7 +65,7 @@ default = [] multipart = ["dep:multer"] websocket = ["dep:hyper", "dep:tokio-tungstenite", "hyper-util/tokio"] server = ["dep:hyper", "dep:hyper-util", "tokio/net"] -test = ["server", "hyper/client", "hyper/http1"] +test = ["server", "hyper/client", "hyper/http1", "dep:futures-channel"] # tls might come back, uncertain #tls = ["tokio-rustls", "rustls-pemfile"]