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?

Enables server of hyper

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?

Enables http1 of hyper

hyper:

HTTP versions

Affects auto::Http1Builder, conn::auto

http2 full? server-auto?

Enables http2 of hyper

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