Cargo Features

[dependencies]
hypers = { version = "0.7.0", default-features = false, features = ["full", "macro", "http1", "http2", "openapi", "cbor", "msgpack", "multipart", "download", "cookie", "static_file", "websocket", "rustls", "native_tls"] }
default = http1, macro

These default features are set whenever hypers is added without default-features = false somewhere in the dependency tree.

full = cookie, download, multipart, static_file, websocket
macro default = hypers_macro
http1 default

Enables hyper

http2

Enables hyper

openapi = hypers_openapi

Enables openapi of hypers_macro

Affects router::openapi

cbor = ciborium
msgpack = rmp-serde
multipart full?
download full? = percent-encoding

Enables cookie, cookie of hypers_macro

static_file full? = percent-encoding, time
websocket full? = tokio-tungstenite
rustls = rustls-pemfile, tokio-rustls

Affects listener::tls

native_tls = tokio-native-tls

Affects listener::tls.NativeTlsListener, listener::tls

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

hypers_openapi openapi?
hypers_macro cookie? macro openapi?
ciborium cbor?
rmp-serde msgpack?
time static_file?
percent-encoding download? static_file?
tokio-tungstenite websocket?
tokio-rustls rustls?

Enables tokio-rustls =0.24.0

rustls-pemfile rustls?
tokio-native-tls native_tls?