expose FromRequest and FromRequestParts macros in axum (#1352)

This commit is contained in:
Ferenc Tamás 2022-09-18 19:46:04 +02:00 committed by GitHub
parent c09ecefcab
commit 84f58ae9a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -42,6 +42,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
without any routes will now result in a panic. Previously, this just did
nothing. [#1327]
## Extractors
- **added:** `FromRequest` and `FromRequestParts` derive macro re-exports from [`axum-macros`] behind the `macros` feature ([#1352])
[`axum-macros`]: https://docs.rs/axum-macros/latest/axum_macros/
[#1352]: https://github.com/tokio-rs/axum/pull/1352
## Middleware
- **added**: Add `middleware::from_fn_with_state` and

View file

@ -18,6 +18,9 @@ mod state;
#[doc(inline)]
pub use axum_core::extract::{DefaultBodyLimit, FromRef, FromRequest, FromRequestParts};
#[cfg(feature = "macros")]
pub use axum_macros::{FromRequest, FromRequestParts};
#[doc(inline)]
#[allow(deprecated)]
pub use self::{