- change: axum-macro's MSRV is now 1.60 (#1239)
- added: Support using a different rejection for
#[derive(FromRequest)]
with#[from_request(rejection(MyRejection))]
(#1256) - 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) - added: Add
#[derive(FromRequestParts)]
for deriving an implementation of
FromRequestParts
, similarly to#[derive(FromRequest)]
(#1305)