2022-01-25 15:05:50 +01:00
|
|
|
# Changelog
|
|
|
|
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
|
|
|
|
|
# Unreleased
|
|
|
|
|
2022-11-18 17:29:47 +01:00
|
|
|
- None.
|
|
|
|
|
2023-02-12 12:40:42 +01:00
|
|
|
# 0.3.4 (12. February, 2022)
|
|
|
|
|
|
|
|
- **fixed:** Fix `#[derive(FromRef)]` with `Copy` fields generating clippy warnings ([#1749])
|
|
|
|
|
|
|
|
[#1749]: https://github.com/tokio-rs/axum/pull/1749
|
|
|
|
|
2023-02-11 22:32:16 +01:00
|
|
|
# 0.3.3 (11. February, 2022)
|
|
|
|
|
|
|
|
- **fixed:** Fix `#[debug_handler]` sometimes giving wrong borrow related suggestions ([#1710])
|
|
|
|
|
|
|
|
[#1710]: https://github.com/tokio-rs/axum/pull/1710
|
|
|
|
|
2023-01-24 13:31:33 +01:00
|
|
|
# 0.3.2 (22. January, 2022)
|
|
|
|
|
|
|
|
- No public API changes.
|
|
|
|
|
2023-01-09 13:54:49 +01:00
|
|
|
# 0.3.1 (9. January, 2022)
|
|
|
|
|
|
|
|
- **fixed:** Fix warnings for cloning references in generated code ([#1676])
|
|
|
|
|
|
|
|
[#1676]: https://github.com/tokio-rs/axum/pull/1676
|
|
|
|
|
2022-11-25 13:29:58 +01:00
|
|
|
# 0.3.0 (25. November, 2022)
|
|
|
|
|
|
|
|
- **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 implementing `FromRef` 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 generate `type Rejection = axum::response::Response`. Use the
|
|
|
|
new `#[from_request(rejection(MyRejection))]` attribute to change this.
|
|
|
|
The `rejection_derive` attribute has also been removed ([#1272])
|
|
|
|
|
|
|
|
[#1239]: https://github.com/tokio-rs/axum/pull/1239
|
|
|
|
[#1256]: https://github.com/tokio-rs/axum/pull/1256
|
|
|
|
[#1272]: https://github.com/tokio-rs/axum/pull/1272
|
|
|
|
[#1305]: https://github.com/tokio-rs/axum/pull/1305
|
|
|
|
[#1430]: https://github.com/tokio-rs/axum/pull/1430
|
|
|
|
[#1537]: https://github.com/tokio-rs/axum/pull/1537
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>0.3.0 Pre-Releases</summary>
|
|
|
|
|
2022-11-18 17:29:47 +01:00
|
|
|
# 0.3.0-rc.3 (18. November, 2022)
|
|
|
|
|
2022-11-18 12:05:10 +01:00
|
|
|
- **added:** Add `#[from_ref(skip)]` to skip implementing `FromRef` for individual fields ([#1537])
|
|
|
|
|
|
|
|
[#1537]: https://github.com/tokio-rs/axum/pull/1537
|
2022-11-09 09:01:47 +01:00
|
|
|
|
|
|
|
# 0.3.0-rc.2 (8. November, 2022)
|
|
|
|
|
2022-10-10 20:40:14 +02:00
|
|
|
- **added:** Add `#[derive(FromRef)]` ([#1430])
|
|
|
|
|
|
|
|
[#1430]: https://github.com/tokio-rs/axum/pull/1430
|
2022-08-23 22:57:13 +02:00
|
|
|
|
|
|
|
# 0.3.0-rc.1 (23. August, 2022)
|
|
|
|
|
2022-08-09 18:43:02 +02:00
|
|
|
- **change:** axum-macro's MSRV is now 1.60 ([#1239])
|
2022-08-12 18:05:27 +02:00
|
|
|
- **added:** Support using a different rejection for `#[derive(FromRequest)]`
|
|
|
|
with `#[from_request(rejection(MyRejection))]` ([#1256])
|
2022-08-22 12:23:20 +02:00
|
|
|
- **breaking:** `#[derive(FromRequest)]` will no longer generate a rejection
|
|
|
|
enum but instead generate `type Rejection = axum::response::Response`. Use the
|
|
|
|
new `#[from_request(rejection(MyRejection))]` attribute to change this.
|
|
|
|
The `rejection_derive` attribute has also been removed ([#1272])
|
2022-08-23 21:14:02 +02:00
|
|
|
- **added:** Add `#[derive(FromRequestParts)]` for deriving an implementation of
|
|
|
|
`FromRequestParts`, similarly to `#[derive(FromRequest)]` ([#1305])
|
2022-08-09 18:43:02 +02:00
|
|
|
|
|
|
|
[#1239]: https://github.com/tokio-rs/axum/pull/1239
|
2022-08-12 18:05:27 +02:00
|
|
|
[#1256]: https://github.com/tokio-rs/axum/pull/1256
|
2022-08-22 12:23:20 +02:00
|
|
|
[#1272]: https://github.com/tokio-rs/axum/pull/1272
|
2022-08-23 21:14:02 +02:00
|
|
|
[#1305]: https://github.com/tokio-rs/axum/pull/1305
|
2022-06-27 21:06:59 +02:00
|
|
|
|
2022-11-25 13:29:58 +01:00
|
|
|
</details>
|
|
|
|
|
2022-06-27 21:06:59 +02:00
|
|
|
# 0.2.3 (27. June, 2022)
|
|
|
|
|
|
|
|
- **change:** axum-macros's MSRV is now 1.56 ([#1098])
|
2022-06-27 20:57:02 +02:00
|
|
|
- **fixed:** Silence "unnecessary use of `to_string`" lint for `#[derive(TypedPath)]` ([#1117])
|
2022-06-17 20:11:35 +02:00
|
|
|
|
|
|
|
[#1098]: https://github.com/tokio-rs/axum/pull/1098
|
2022-06-27 20:57:02 +02:00
|
|
|
[#1117]: https://github.com/tokio-rs/axum/pull/1117
|
2022-05-18 20:23:56 +02:00
|
|
|
|
|
|
|
# 0.2.2 (18. May, 2022)
|
|
|
|
|
2022-05-16 12:05:17 +02:00
|
|
|
- **added:** In `debug_handler`, check if `Request` is used as non-final extractor ([#1035])
|
|
|
|
- **added:** In `debug_handler`, check if multiple `Path` extractors are used ([#1035])
|
2022-05-16 16:11:40 +02:00
|
|
|
- **added:** In `debug_handler`, check if multiple body extractors are used ([#1036])
|
2022-05-18 20:23:56 +02:00
|
|
|
- **added:** Support customizing rejections for `#[derive(TypedPath)]` ([#1012])
|
2022-05-16 12:05:17 +02:00
|
|
|
|
|
|
|
[#1035]: https://github.com/tokio-rs/axum/pull/1035
|
2022-05-16 16:11:40 +02:00
|
|
|
[#1036]: https://github.com/tokio-rs/axum/pull/1036
|
2022-05-18 20:23:56 +02:00
|
|
|
[#1012]: https://github.com/tokio-rs/axum/pull/1012
|
2022-05-10 13:46:17 +02:00
|
|
|
|
|
|
|
# 0.2.1 (10. May, 2022)
|
|
|
|
|
2022-05-06 09:42:10 +02:00
|
|
|
- **fixed:** `Option` and `Result` are now supported in typed path route handler parameters ([#1001])
|
2022-05-06 13:05:30 +02:00
|
|
|
- **fixed:** Support wildcards in typed paths ([#1003])
|
2022-05-08 20:04:56 +02:00
|
|
|
- **added:** Support `#[derive(FromRequest)]` on enums using `#[from_request(via(OtherExtractor))]` ([#1009])
|
2022-05-17 21:36:05 +02:00
|
|
|
- **added:** Support using a custom rejection type for `#[derive(TypedPath)]`
|
|
|
|
instead of `PathRejection` ([#1012])
|
2022-05-06 09:42:10 +02:00
|
|
|
|
|
|
|
[#1001]: https://github.com/tokio-rs/axum/pull/1001
|
2022-05-06 13:05:30 +02:00
|
|
|
[#1003]: https://github.com/tokio-rs/axum/pull/1003
|
2022-05-08 20:04:56 +02:00
|
|
|
[#1009]: https://github.com/tokio-rs/axum/pull/1009
|
2022-05-17 21:36:05 +02:00
|
|
|
[#1012]: https://github.com/tokio-rs/axum/pull/1012
|
2022-03-31 20:43:34 +02:00
|
|
|
|
|
|
|
# 0.2.0 (31. March, 2022)
|
|
|
|
|
2022-03-04 00:24:27 +01:00
|
|
|
- **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])
|
|
|
|
|
|
|
|
[#823]: https://github.com/tokio-rs/axum/pull/823
|
2022-01-25 15:05:50 +01:00
|
|
|
|
2022-03-31 20:21:55 +02:00
|
|
|
# 0.1.2 (1. March 2022)
|
2022-01-25 15:05:50 +01:00
|
|
|
|
2022-03-31 20:21:55 +02:00
|
|
|
- **fixed:** Use fully qualified `Result` type ([#796])
|
|
|
|
|
|
|
|
[#796]: https://github.com/tokio-rs/axum/pull/796
|
|
|
|
|
|
|
|
# 0.1.1 (22. February 2022)
|
|
|
|
|
|
|
|
- Add `#[derive(TypedPath)]` for use with axum-extra's new "type safe" routing API ([#756])
|
2022-02-18 14:13:56 +01:00
|
|
|
|
|
|
|
[#756]: https://github.com/tokio-rs/axum/pull/756
|
2022-03-31 20:21:55 +02:00
|
|
|
|
|
|
|
# 0.1.0 (31. January, 2022)
|
|
|
|
|
|
|
|
- Initial release.
|