mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
axum 0.6 and friends 🎉 (#1570)
* changelog * bump versions * reorder changelogs a bit * Apply suggestions from code review Co-authored-by: Jonas Platte <[email protected]> * Expand fallback inheritance * Reword tsr * Mention `parse-body-based-on-content-type` example Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
co-authored by
Jonas Platte
parent
0b26411f39
commit
1b6780cf6c
@@ -9,6 +9,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- None.
|
||||
|
||||
# 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>
|
||||
|
||||
# 0.3.0-rc.3 (18. November, 2022)
|
||||
|
||||
- **added:** Add `#[from_ref(skip)]` to skip implementing `FromRef` for individual fields ([#1537])
|
||||
@@ -38,6 +62,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
[#1272]: https://github.com/tokio-rs/axum/pull/1272
|
||||
[#1305]: https://github.com/tokio-rs/axum/pull/1305
|
||||
|
||||
</details>
|
||||
|
||||
# 0.2.3 (27. June, 2022)
|
||||
|
||||
- **change:** axum-macros's MSRV is now 1.56 ([#1098])
|
||||
|
||||
@@ -9,7 +9,7 @@ license = "MIT"
|
||||
name = "axum-macros"
|
||||
readme = "README.md"
|
||||
repository = "https://github.com/tokio-rs/axum"
|
||||
version = "0.3.0-rc.3" # remember to also bump the version that axum and axum-extra depends on
|
||||
version = "0.3.0" # remember to also bump the version that axum and axum-extra depends on
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
@@ -25,8 +25,8 @@ syn = { version = "1.0", features = [
|
||||
] }
|
||||
|
||||
[dev-dependencies]
|
||||
axum = { path = "../axum", version = "=0.6.0-rc.5", features = ["headers", "macros"] }
|
||||
axum-extra = { path = "../axum-extra", version = "=0.4.0-rc.3", features = ["typed-routing", "cookie-private"] }
|
||||
axum = { path = "../axum", version = "0.6.0", features = ["headers", "macros"] }
|
||||
axum-extra = { path = "../axum-extra", version = "0.4.0", features = ["typed-routing", "cookie-private"] }
|
||||
rustversion = "1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
|
||||
Reference in New Issue
Block a user