Cargo Features
hyper-util has no features set by default.
[dependencies]
hyper-util = { version = "0.1.10", features = ["full", "client", "client-legacy", "server", "server-auto", "server-graceful", "service", "http1", "http2", "tokio"] }
- full = client, client-legacy, http1, http2, server, server-auto, server-graceful, service, tokio
-
Shorthand to enable everything
- client client-legacy? full?
-
Enables futures-channel, tower-service and tracing and client of hyper
hyper:
Client/Server
Affects
hyper-util::client
… - client-legacy full? = client
-
Enables socket2, sync of tokio
Affects
client::legacy
,hyper-util::service
… - server full? server-auto? server-graceful?
-
Affects
hyper-util::server
… - server-auto full? = http1, http2, server
- server-graceful full? = server
-
Enables alloc of futures-util, sync of tokio
Affects
server::graceful
… - service full?
-
Enables tower-service
Affects
hyper-util::service
… - http1 full? server-auto?
-
hyper:
HTTP versions
Affects
auto::Http1Builder
,conn::auto
… - http2 full? server-auto?
-
Affects
auto::HttpServerConnExec
,auto::Http2Builder
,conn::auto
… - tokio client-legacy? full? server-graceful?
-
Enables net, rt and time of tokio
Affects
connect::dns
,rt::tokio
…