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
somewhere in the dependency tree.default-features = false - 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.