Cargo Features
[dependencies]
hypers_core = { version = "0.14.1", default-features = false, features = ["full", "macro", "http1", "http2", "cbor", "msgpack", "yaml", "toml", "xml", "multipart", "cookie", "static_file", "static_embed", "websocket", "rustls", "native_tls", "debug", "test"] }
- default = http1, macro
-
These default features are set whenever
hypers_core
is added without
somewhere in the dependency tree.default-features = false - full = cbor, cookie, http2, msgpack, multipart, native_tls, rustls, static_embed, static_file, toml, websocket, xml, yaml
- macro default = hypers_macro
- http1 default
-
Enables hyper =1.4.1, http1 of hyper-util =0.1.8
- http2 full?
-
Enables hyper =1.4.1, http2 of hyper-util =0.1.8
- cbor full? = ciborium
- msgpack full? = rmp-serde
- yaml full?
-
Enables serde_yaml =0.9.33
- toml full?
-
Enables toml
- xml full?
-
Enables quick-xml =0.36.1
- multipart full?
-
Enables cookie
Affects
request::Request.cookies
,response::Response.cookies
… - static_file full? = percent-encoding, time
- static_embed full? = hex, path-slash, percent-encoding, rust-embed
- websocket full? = tokio-tungstenite
- rustls full? = rustls-pemfile, tokio-rustls
- native_tls full? = tokio-native-tls
-
Affects
listener::NativeTlsListener
… - debug = tracing
-
Affects
handler::Handler.type_name
,handler::Hook.type_name
… - test
-
Enables base64, brotli =6.0.0, bytes =1.7.1, encoding_rs =0.8.34, flate2 =1.0.33, and zstd
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_macro macro
- ciborium cbor?
- rmp-serde msgpack?
- time static_file?
- percent-encoding static_embed? static_file?
- tokio-tungstenite websocket?
- tokio-rustls rustls?
- rustls-pemfile rustls?
-
Enables rustls-pemfile =2.1.3
- tokio-native-tls native_tls?
- rust-embed static_embed?
- path-slash static_embed?
- hex static_embed?
- tracing debug?