Re-export http crate and hyper::Server (#110)

Co-Authored-By: David Pedersen <[email protected]>

Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
Sunli
2021-08-04 12:29:42 +02:00
committed by GitHub
co-authored by David Pedersen
parent d285dfb568
commit 7cf8dafdce
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -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
+4 -3
View File
@@ -630,9 +630,6 @@
//! [dependencies]
//! axum = "<latest-version>"
//!
//! # For http types like `StatusCode`, `Method`, and `Response`
//! http = "<latest-version>"
//!
//! # "full" isn't strictly necessary for tokio and hyper but its the
//! # easiest way to get started.
//! hyper = { version = "<latest-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 {