axum-core-v0.4.4

tokio-rs/axumaxum-core-v0.4.4Sep 20, 2024by jplatte

AI Summary

API usability improvements including derives for Clone and Copy, must_use attributes, and const context support for body limits.

Key Highlights

  • Derived Clone and Copy for AppendHeaders
  • Added must_use attributes to various traits and types
  • Enabled DefaultBodyLimit in const context

New Features

  • Clone and Copy for AppendHeaders
  • must_use attributes
  • DefaultBodyLimit in const context

Full Release Notes

- **added:** Derive `Clone` and `Copy` for `AppendHeaders` ([#2776])
- **added:** `must_use` attribute on `AppendHeaders` ([#2846])
- **added:** `must_use` attribute on `ErrorResponse` ([#2846])
- **added:** `must_use` attribute on `IntoResponse::into_response` ([#2846])
- **added:** `must_use` attribute on `IntoResponseParts` trait methods ([#2846])
- **added:** Implement `Copy` for `DefaultBodyLimit` ([#2875])
- **added**: `DefaultBodyLimit::max` and `DefaultBodyLimit::disable` are now
  allowed in const context ([#2875])

[#2776]: https://github.com/tokio-rs/axum/pull/2776
[#2846]: https://github.com/tokio-rs/axum/pull/2846
[#2875]: https://github.com/tokio-rs/axum/pull/2875