Cargo Features
hyper2 has no features set by default.
[dependencies]
hyper2 = { version = "0.14.62", features = ["full", "http1", "http2", "client", "server", "stream", "runtime", "tcp", "ffi", "backports", "deprecated", "nightly"] }
- default
-
Nothing by default
- full = client, http1, http2, runtime, server, stream
-
Easily turn it all on
- http1 full?
-
HTTP versions
Affects
conn::http1
,conn::http1
,conn::Http
,conn::Parts
,exec::NewSvcExec
… - http2 full? = h2
-
Enables unstable of rh2 ^0.3.60
rh2:
Enables unstable APIs. Any API exposed by this feature has no backwards compatibility guarantees. In other words, you should not use this feature for anything besides experimentation. Definitely do not publish a crate that depends on this feature.
Affects
ext::Protocol
,conn::http2
,conn::http2
,conn::Http
,conn::Parts
,exec::NewSvcExec
… - client full?
-
Client/Server
- server full?
-
Affects
exec::ConnStreamExec
,exec::NewSvcExec
… - stream full?
-
impl Stream
for thingsAffects
accept::from_stream
… - runtime full? = tcp
-
Tokio support
- tcp runtime? = socket2
- ffi = libc
-
C-API support (currently unstable (no semver))
Affects
hyper2::ffi
… - backports
-
enable 1.0 backports
Affects
conn::http1
,conn::http2
,conn::http1
,conn::http2
… - deprecated
-
whether or not to display deprecation warnings
- nightly
-
internal features used in CI
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.