mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-29 11:42:47 +01:00
expose FromRequest and FromRequestParts macros in axum (#1352)
This commit is contained in:
parent
c09ecefcab
commit
84f58ae9a5
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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::{
|
||||
|
|
Loading…
Reference in a new issue