diff --git a/Cargo.toml b/Cargo.toml index dfb083a9..623dcd7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index 082796f5..9c41c8eb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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