axum-v0.8.2

tokio-rs/axumaxum-v0.8.2Jan 21, 2025by jplatte

AI Summary

A yanked release introducing `OptionalFromRequest` traits and `const` status functions for rejections.

Key Highlights

  • Added `OptionalFromRequest` implementation for `Json` and `Extension`.
  • Made the `status` function for various rejections (e.g., `JsonRejection`) a `const` function.

New Features

  • Added `OptionalFromRequest` for `Json`
  • Added `OptionalFromRequest` for `Extension`
  • Made rejection status functions `const`

Full Release Notes

Yanked from crates.io due to unforeseen breaking change, see #3190 for details

---

- **added:** Implement `OptionalFromRequest` for `Json` ([#3142])
- **added:** Implement `OptionalFromRequest` for `Extension` ([#3157])
- **changed:** Make the `status` function of rejections a `const` function, such
  as `JsonRejection`, `QueryRejection` and `PathRejection` ([#3168])

[#3142]: https://github.com/tokio-rs/axum/pull/3142
[#3157]: https://github.com/tokio-rs/axum/pull/3157
[#3168]: https://github.com/tokio-rs/axum/pull/3168