All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- None.
- added: Add
#[derive(FromRequestParts)]
for deriving an implementation ofFromRequestParts
, 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)
0.3.0 Pre-Releases
- added: Add
#[from_ref(skip)]
to skip implementingFromRef
for individual fields (#1537)
- added: Add
#[derive(FromRef)]
(#1430)
- 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 ofFromRequestParts
, similarly to#[derive(FromRequest)]
(#1305)
- change: axum-macros's MSRV is now 1.56 (#1098)
- fixed: Silence "unnecessary use of
to_string
" lint for#[derive(TypedPath)]
(#1117)
- added: In
debug_handler
, check ifRequest
is used as non-final extractor (#1035) - added: In
debug_handler
, check if multiplePath
extractors are used (#1035) - added: In
debug_handler
, check if multiple body extractors are used (#1036) - added: Support customizing rejections for
#[derive(TypedPath)]
(#1012)
- fixed:
Option
andResult
are now supported in typed path route handler parameters (#1001) - fixed: Support wildcards in typed paths (#1003)
- added: Support
#[derive(FromRequest)]
on enums using#[from_request(via(OtherExtractor))]
(#1009) - added: Support using a custom rejection type for
#[derive(TypedPath)]
instead ofPathRejection
(#1012)
- breaking: Routes are now required to start with
/
. Previously empty routes or routes such as:foo
would be accepted but most likely result in bugs (#823)
- fixed: Use fully qualified
Result
type (#796)
- Add
#[derive(TypedPath)]
for use with axum-extra's new "type safe" routing API (#756)
- Initial release.