mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 23:30:29 +01:00
be624306f4
* Only allow last extractor to mutate the request * Change `FromRequest` and add `FromRequestParts` trait (#1275) * Add `Once`/`Mut` type parameter for `FromRequest` and `RequestParts` * 🪄 * split traits * `FromRequest` for tuples * Remove `BodyAlreadyExtracted` * don't need fully qualified path * don't export `Once` and `Mut` * remove temp tests * depend on axum again Co-authored-by: Jonas Platte <jplatte+git@posteo.de> * Port `Handler` and most extractors (#1277) * Port `Handler` and most extractors * Put `M` inside `Handler` impls, not trait itself * comment out tuples for now * fix lints * Reorder arguments to `Handler` (#1281) I think `Request<B>, Arc<S>` is better since its consistent with `FromRequest` and `FromRequestParts`. * Port most things in axum-extra (#1282) * Port `#[derive(TypedPath)]` and `#[debug_handler]` (#1283) * port #[derive(TypedPath)] * wip: #[debug_handler] * fix #[debug_handler] * don't need itertools * also require `Send` * update expected error * support fully qualified `self` * Implement FromRequest[Parts] for tuples (#1286) * Port docs for axum and axum-core (#1285) * Port axum-extra (#1287) * Port axum-extra * Update axum-core/Cargo.toml Co-authored-by: Jonas Platte <jplatte+git@posteo.de> * remove `impl FromRequest for Either*` Co-authored-by: Jonas Platte <jplatte+git@posteo.de> * New FromRequest[Parts] trait cleanup (#1288) * Make private module truly private again * Simplify tuple FromRequest implementation * Port `#[derive(FromRequest)]` (#1289) * fix tests * fix docs * revert examples * fix docs link * fix intra docs links * Port examples (#1291) * Document wrapping other extractors (#1292) * axum-extra doesn't need to depend on axum-core (#1294) Missed this in https://github.com/tokio-rs/axum/pull/1287 * Add `FromRequest` changes to changelogs (#1293) * Update changelog * Remove default type for `S` in `Handler` * Clarify which types have default types for `S` * Apply suggestions from code review Co-authored-by: Jonas Platte <jplatte+git@posteo.de> Co-authored-by: Jonas Platte <jplatte+git@posteo.de> * remove unused import * Rename `Mut` and `Once` (#1296) * fix trybuild expected output Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
75 lines
2.9 KiB
Markdown
75 lines
2.9 KiB
Markdown
# 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
|
|
|
|
- **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 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
|
|
|
|
# 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])
|
|
|
|
[#1098]: https://github.com/tokio-rs/axum/pull/1098
|
|
[#1117]: https://github.com/tokio-rs/axum/pull/1117
|
|
|
|
# 0.2.2 (18. May, 2022)
|
|
|
|
- **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])
|
|
- **added:** In `debug_handler`, check if multiple body extractors are used ([#1036])
|
|
- **added:** Support customizing rejections for `#[derive(TypedPath)]` ([#1012])
|
|
|
|
[#1035]: https://github.com/tokio-rs/axum/pull/1035
|
|
[#1036]: https://github.com/tokio-rs/axum/pull/1036
|
|
[#1012]: https://github.com/tokio-rs/axum/pull/1012
|
|
|
|
# 0.2.1 (10. May, 2022)
|
|
|
|
- **fixed:** `Option` and `Result` 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 of `PathRejection` ([#1012])
|
|
|
|
[#1001]: https://github.com/tokio-rs/axum/pull/1001
|
|
[#1003]: https://github.com/tokio-rs/axum/pull/1003
|
|
[#1009]: https://github.com/tokio-rs/axum/pull/1009
|
|
[#1012]: https://github.com/tokio-rs/axum/pull/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])
|
|
|
|
[#823]: https://github.com/tokio-rs/axum/pull/823
|
|
|
|
# 0.1.2 (1. March 2022)
|
|
|
|
- **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])
|
|
|
|
[#756]: https://github.com/tokio-rs/axum/pull/756
|
|
|
|
# 0.1.0 (31. January, 2022)
|
|
|
|
- Initial release.
|