mirror of
https://github.com/tokio-rs/axum.git
synced 2025-03-20 14:08:51 +01:00
Remove deprecated extractor_middleware
function (#1077)
This commit is contained in:
parent
7e794e9d1d
commit
56ddabcd7d
3 changed files with 4 additions and 18 deletions
|
@ -30,7 +30,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
extractor ([#1078])
|
extractor ([#1078])
|
||||||
- **added:** Implement `IntoResponse` for `Form` ([#1095])
|
- **added:** Implement `IntoResponse` for `Form` ([#1095])
|
||||||
- **change:** axum's MSRV is now 1.56 ([#1098])
|
- **change:** axum's MSRV is now 1.56 ([#1098])
|
||||||
|
- **breaking:** Remove `extractor_middleware` which was previously deprecated.
|
||||||
|
Use `axum::middleware::from_extractor` instead ([#1077])
|
||||||
|
|
||||||
|
[#1077]: https://github.com/tokio-rs/axum/pull/1077
|
||||||
|
[#1078]: https://github.com/tokio-rs/axum/pull/1078
|
||||||
[#1078]: https://github.com/tokio-rs/axum/pull/1078
|
[#1078]: https://github.com/tokio-rs/axum/pull/1078
|
||||||
[#1095]: https://github.com/tokio-rs/axum/pull/1095
|
[#1095]: https://github.com/tokio-rs/axum/pull/1095
|
||||||
[#1098]: https://github.com/tokio-rs/axum/pull/1098
|
[#1098]: https://github.com/tokio-rs/axum/pull/1098
|
||||||
|
|
|
@ -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<E>() -> ExtractorMiddlewareLayer<E> {
|
|
||||||
from_extractor()
|
|
||||||
}
|
|
|
@ -4,7 +4,6 @@ use http::header;
|
||||||
use rejection::*;
|
use rejection::*;
|
||||||
|
|
||||||
pub mod connect_info;
|
pub mod connect_info;
|
||||||
pub mod extractor_middleware;
|
|
||||||
pub mod path;
|
pub mod path;
|
||||||
pub mod rejection;
|
pub mod rejection;
|
||||||
|
|
||||||
|
@ -24,7 +23,6 @@ pub use axum_core::extract::{FromRequest, RequestParts};
|
||||||
pub use self::{
|
pub use self::{
|
||||||
connect_info::ConnectInfo,
|
connect_info::ConnectInfo,
|
||||||
content_length_limit::ContentLengthLimit,
|
content_length_limit::ContentLengthLimit,
|
||||||
extractor_middleware::extractor_middleware,
|
|
||||||
host::Host,
|
host::Host,
|
||||||
path::Path,
|
path::Path,
|
||||||
raw_query::RawQuery,
|
raw_query::RawQuery,
|
||||||
|
|
Loading…
Add table
Reference in a new issue