Crate features / hyper
Feature flags · hyper 1.12.0 · from crates.io 2026-10-24
hyper features: what each one does, and the line to copy
Short answerhyper 1.12.0 has 9 features. Nothing is on by default: turn on what you use. It needs Rust 1.63 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
capi | nothing else (a switch the code checks) | |
client | dep:want, dep:pin-project-lite, dep:smallvec | |
ffi | dep:http-body-util, dep:futures-util | |
full | client, http1, http2, server | |
http1 | dep:atomic-waker, dep:futures-core, dep:httparse, dep:itoa | |
http2 | dep:atomic-waker, dep:futures-channel, dep:futures-core, dep:h2 | |
nightly | nothing else (a switch the code checks) | |
server | dep:httpdate, dep:pin-project-lite, dep:smallvec | |
tracing | dep:tracing |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version hyper declares (rust-version), and the release that changed it:
- 1.0.0-rc.4 (2023-07-10): Rust 1.56
- 1.0.0 (2023-11-15): Rust 1.63
- 0.14.28 (2023-12-18): no rust-version declared
- 1.1.0 (2023-12-18): Rust 1.63
- 0.14.29 (2024-06-03): no rust-version declared
- 1.4.0 (2024-07-01): Rust 1.63
- 0.14.30 (2024-07-09): no rust-version declared
- 1.4.1 (2024-07-09): Rust 1.63
- 0.14.31 (2024-10-15): no rust-version declared
- 1.5.0 (2024-10-15): Rust 1.63
- 0.14.32 (2024-12-16): no rust-version declared
- 1.5.2 (2024-12-16): Rust 1.63
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p hyper --precise <version>, or use resolver 3, which picks compatible versions for you.
More on hyper
Real downloads, dependents and alternatives: hyper crate data (2.8M real downloads a day, 5,861 dependents).
Security record: hyper advisories.
docs.rs feature list · crates.io · license MIT · edition 2021
Up next
Before you depend on ithyper crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?