From 7cf8dafdce26276b1969111dbbf034bb98786e30 Mon Sep 17 00:00:00 2001 From: Sunli Date: Wed, 4 Aug 2021 18:29:42 +0800 Subject: [PATCH] Re-export http crate and hyper::Server (#110) Co-Authored-By: David Pedersen Co-authored-by: David Pedersen --- CHANGELOG.md | 1 + src/lib.rs | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 484f7e08..f952be59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix stripping prefix when nesting services at `/` ([#91](https://github.com/tokio-rs/axum/pull/91)) - Add support for WebSocket protocol negotiation. ([#83](https://github.com/tokio-rs/axum/pull/83)) - Use `pin-project-lite` instead of `pin-project`. ([#95](https://github.com/tokio-rs/axum/pull/95)) +- Re-export `http` crate and `hyper::Server`. ([#110](https://github.com/tokio-rs/axum/pull/110)) ## Breaking changes diff --git a/src/lib.rs b/src/lib.rs index 95641863..dd7428e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -630,9 +630,6 @@ //! [dependencies] //! axum = "" //! -//! # For http types like `StatusCode`, `Method`, and `Response` -//! http = "" -//! //! # "full" isn't strictly necessary for tokio and hyper but its the //! # easiest way to get started. //! hyper = { version = "", features = ["full"] } @@ -737,6 +734,10 @@ pub mod ws; mod tests; pub use async_trait::async_trait; +#[doc(no_inline)] +pub use http; +#[doc(no_inline)] +pub use hyper::Server; pub use tower_http::add_extension::{AddExtension, AddExtensionLayer}; pub mod prelude {