Crate features / http
Feature flags · http 1.5.0 · from crates.io 2026-10-24
http features: what each one does, and the line to copy
Short answerhttp 1.5.0 has 1 feature. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.57.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
std | yes | nothing else (a switch the code checks) |
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 http declares (rust-version), and the release that changed it:
- 0.2.6 (2021-12-30): Rust 1.46.0
- 0.2.7 (2022-04-28): Rust 1.49.0
- 1.4.0 (2025-11-24): Rust 1.57.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p http --precise <version>, or use resolver 3, which picks compatible versions for you.
More on http
Real downloads, dependents and alternatives: http crate data (3.3M real downloads a day, 8,511 dependents).
Security record: http advisories.
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on ithttp crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?