mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-23 15:48:06 +01:00
6.6 KiB
6.6 KiB
Changelog
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.
0.4.2
0.4.1 (13. January, 2024)
- fixed: Improve
debug_handler
on tuple response types (#2201)
0.4.0 (27. November, 2023)
- breaking:
#[debug_handler]
no longer accepts abody = _
argument. The body type is alwaysaxum::body::Body
(#1751) - fixed: Fix
rust-version
specific in Cargo.toml (#2204)
0.3.8 (17. July, 2023)
- fixed: Allow unreachable code in
#[debug_handler]
(#2014)
0.3.7 (22. March, 2023)
- change: Update to syn 2.0 (#1862)
- fixed: Give better error if generics are used with
#[derive(FromRef)]
(#1874)
0.3.6 (13. March, 2023)
- fixed: Improve
#[debug_handler]
message for known generic request-consuming extractors (#1826)
0.3.5 (03. March, 2023)
- fixed: In
#[debug_handler]
provide specific errors aboutFromRequest
extractors not being the last argument (#1797)
0.3.4 (12. February, 2022)
- fixed: Fix
#[derive(FromRef)]
withCopy
fields generating clippy warnings (#1749)
0.3.3 (11. February, 2022)
- fixed: Fix
#[debug_handler]
sometimes giving wrong borrow related suggestions (#1710)
0.3.2 (22. January, 2022)
- No public API changes.
0.3.1 (9. January, 2022)
- fixed: Fix warnings for cloning references in generated code (#1676)
0.3.0 (25. November, 2022)
- 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
0.3.0-rc.3 (18. November, 2022)
- added: Add
#[from_ref(skip)]
to skip implementingFromRef
for individual fields (#1537)
0.3.0-rc.2 (8. November, 2022)
- added: Add
#[derive(FromRef)]
(#1430)
0.3.0-rc.1 (23. August, 2022)
- 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)
0.2.3 (27. June, 2022)
- change: axum-macros's MSRV is now 1.56 (#1098)
- fixed: Silence "unnecessary use of
to_string
" lint for#[derive(TypedPath)]
(#1117)
0.2.2 (18. May, 2022)
- 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)
0.2.1 (10. May, 2022)
- 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)
0.2.0 (31. March, 2022)
- 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)
0.1.2 (1. March 2022)
- fixed: Use fully qualified
Result
type (#796)
0.1.1 (22. February 2022)
- Add
#[derive(TypedPath)]
for use with axum-extra's new "type safe" routing API (#756)
0.1.0 (31. January, 2022)
- Initial release.