Cargo Features

hyper-util has no features set by default.

[dependencies]
hyper-util = { version = "0.1.3", features = ["full", "client", "client-legacy", "server", "server-auto", "service", "http1", "http2", "tokio"] }
full = client, client-legacy, http1, http2, server, server-auto, service, tokio

Shorthand to enable everything

client client-legacy? full?

Enables futures-channel, tower, tower-service, and tracing and client of hyper

hyper:

Client/Server

Affects hyper-util::client, hyper-util::service

client-legacy full? = client

Affects client::legacy

server full? server-auto?

Enables server of hyper

Affects hyper-util::server, hyper-util::service

server-auto full? = http1, http2, server
service full?

Enables tower and tower-service

Affects hyper-util::service

http1 full? server-auto?

Enables http1 of hyper

hyper:

HTTP versions

Affects auto::Http1Builder, conn::auto, hyper-util::service

http2 full? server-auto?

Enables http2 of hyper

Affects auto::HttpServerConnExec, auto::Http2Builder, conn::auto, hyper-util::service

tokio full?

Enables socket2 and tokio

Affects connect::dns, rt::tokio