Cargo Features

hyper has no features set by default.

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

Nothing by default

full = client, http1, http2, server

Easily turn it all on

http1 full?

HTTP versions

Enables futures-channel, futures-util, httparse, and itoa

futures-channel:

Optional

Affects conn::http1, conn::http1

http2 full?

Enables futures-channel, futures-util, and h2

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

client full?

Client/Server

Enables pin-project-lite, smallvec, and want

server full?

Enables httpdate, pin-project-lite, and smallvec

ffi

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

Enables http-body-util, alloc of optional futures-util

Affects hyper::ffi

capi
tracing

Utilize tracing (currently unstable)

Enables tracing

nightly

internal features used in CI