@@ -29,8 +29,9 @@ futures-util = { version = "0.3", default-features = false, features = ["sink"]
2929futures-channel = { version = " 0.3.17" , features = [" sink" ]}
3030headers = " 0.4"
3131http = " 1"
32+ http-body = " 1"
3233http-body-util = " 0.1.2"
33- hyper = { version = " 1" , features = [ " server " , " http1 " , " http2 " ] }
34+ hyper = { version = " 1" , optional = true }
3435hyper-util = { version = " 0.1.12" , features = [" server" , " server-graceful" , " server-auto" , " http1" , " http2" , " service" , " tokio" ], optional = true }
3536log = " 0.4"
3637mime = " 0.3"
@@ -40,7 +41,7 @@ scoped-tls = "1.0"
4041serde = " 1.0"
4142serde_json = " 1.0"
4243serde_urlencoded = " 0.7.1"
43- tokio = { version = " 1.0" , features = [" fs" , " sync" , " time" ] }
44+ tokio = { version = " 1.0" , features = [" io-util " , " fs" , " sync" , " time" ] }
4445tokio-util = { version = " 0.7.1" , features = [" io" ] }
4546tracing = { version = " 0.1.21" , default-features = false , features = [" log" , " std" ] }
4647tower-service = " 0.3"
@@ -62,9 +63,9 @@ tokio-stream = { version = "0.1.1", features = ["net"] }
6263[features ]
6364default = []
6465multipart = [" dep:multer" ]
65- websocket = [" hyper/client " , " hyper/http1 " , " dep:tokio-tungstenite" , " hyper-util/tokio" ]
66- server = [" hyper/server " , " hyper/http1 " , " hyper/http2 " , " dep:hyper-util" , " tokio/net" ]
67- test = [" server" ]
66+ websocket = [" dep: hyper" , " dep:tokio-tungstenite" , " hyper-util/tokio" ]
67+ server = [" dep: hyper" , " dep:hyper-util" , " tokio/net" ]
68+ test = [" server" , " hyper/client " , " hyper/http1 " ]
6869# tls might come back, uncertain
6970# tls = ["tokio-rustls", "rustls-pemfile"]
7071
0 commit comments