Cargo Features

hyper has no features set by default.

[dependencies]
hyper = { version = "1.0.1", features = ["full", "http1", "http2", "client", "server", "ffi", "tracing", "nightly"] }
default

Nothing by default

full = client, http1, http2, server

Easily turn it all on

http1 full?

HTTP versions

Enables httparse and itoa

Affects conn::http1, conn::http1

http2 full?

Enables h2

Optional

Affects conn::http2, ext::Protocol, conn::http2

client full?

Client/Server

Enables want

server full?

Enables httpdate

ffi

C-API support (currently unstable (no semver))

Enables http-body-util and libc

Affects hyper::ffi

tracing

Utilize tracing (currently unstable)

nightly

internal features used in CI