diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md index 3bd2a04d68..419edc5765 100644 --- a/axum/CHANGELOG.md +++ b/axum/CHANGELOG.md @@ -9,8 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **added:** Support resolving host name via `Forwarded` header in `Host` extractor ([#1078]) +- **breaking:** Remove `extractor_middleware` which was previously deprecated. + Use `axum::middleware::from_extractor` instead ([#1077]) [#1078]: https://github.com/tokio-rs/axum/pull/1078 +[#1077]: https://github.com/tokio-rs/axum/pull/1077 # 0.5.7 (08. June, 2022) diff --git a/axum/src/extract/extractor_middleware.rs b/axum/src/extract/extractor_middleware.rs deleted file mode 100644 index 9e3c1942ce..0000000000 --- a/axum/src/extract/extractor_middleware.rs +++ /dev/null @@ -1,16 +0,0 @@ -//! Convert an extractor into a middleware. -//! -//! See [`extractor_middleware`] for more details. - -use crate::middleware::from_extractor; - -pub use crate::middleware::{ - future::FromExtractorResponseFuture as ResponseFuture, FromExtractor as ExtractorMiddleware, - FromExtractorLayer as ExtractorMiddlewareLayer, -}; - -/// Convert an extractor into a middleware. -#[deprecated(note = "Please use `axum::middleware::from_extractor` instead")] -pub fn extractor_middleware() -> ExtractorMiddlewareLayer { - from_extractor() -} diff --git a/axum/src/extract/mod.rs b/axum/src/extract/mod.rs index 6e17d973ab..bea44b6e6a 100644 --- a/axum/src/extract/mod.rs +++ b/axum/src/extract/mod.rs @@ -4,7 +4,6 @@ use http::header; use rejection::*; pub mod connect_info; -pub mod extractor_middleware; pub mod path; pub mod rejection; @@ -24,7 +23,6 @@ pub use axum_core::extract::{FromRequest, RequestParts}; pub use self::{ connect_info::ConnectInfo, content_length_limit::ContentLengthLimit, - extractor_middleware::extractor_middleware, host::Host, path::Path, raw_query::RawQuery,