- added: Add
#[derive(FromRequestParts)]
for deriving an implementation of
FromRequestParts
, similarly to#[derive(FromRequest)]
(#1305) - added: Add
#[derive(FromRef)]
(#1430) - added: Add
#[from_ref(skip)]
to skip implementingFromRef
for individual fields (#1537) - added: Support using a different rejection for
#[derive(FromRequest)]
with#[from_request(rejection(MyRejection))]
(#1256) - change: axum-macro's MSRV is now 1.60 (#1239)
- breaking:
#[derive(FromRequest)]
will no longer generate a rejection
enum but instead generatetype Rejection = axum::response::Response
. Use the
new#[from_request(rejection(MyRejection))]
attribute to change this.
Therejection_derive
attribute has also been removed (#1272)