Expose hyper's http2 feature flag (#279)

* Order features alphabetically

… in Cargo.toml and crate docs.

* Improve ws feature docs

* Expose hyper's http2 feature flag
This commit is contained in:
Jonas Platte
2021-08-27 08:58:50 +00:00
committed by GitHub
parent 4c5068c01f
commit e41bac7f39
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -16,9 +16,10 @@ members = ["examples/*"]
[features]
default = ["tower-log"]
ws = ["tokio-tungstenite", "sha-1", "base64"]
http2 = ["hyper/http2"]
multipart = ["multer", "mime"]
tower-log = ["tower/log"]
ws = ["tokio-tungstenite", "sha-1", "base64"]
[dependencies]
async-trait = "0.1"
+2 -1
View File
@@ -938,10 +938,11 @@
//!
//! The following optional features are available:
//!
//! - `ws`: Enables WebSockets support.
//! - `headers`: Enables extracting typed headers via [`extract::TypedHeader`].
//! - `http2`: Enables hyper's `http2` feature.
//! - `multipart`: Enables parsing `multipart/form-data` requests with [`extract::Multipart`].
//! - `tower-log`: Enables `tower`'s `log` feature. Enabled by default.
//! - `ws`: Enables WebSockets support via [`extract::ws`].
//!
//! [`tower`]: https://crates.io/crates/tower
//! [`tower-http`]: https://crates.io/crates/tower-http