axum-v0.8.3

tokio-rs/axumaxum-v0.8.3Mar 28, 2025by jplatte

AI Summary

This release enhances WebSocket functionality with new message implementations and optional extractors for common types.

Key Highlights

  • Added `From<Bytes>` implementation for `Message`.
  • Added `OptionalFromRequest` for `Json` and `Extension`.
  • Allowed setting read buffer capacity for `WebSocketUpgrade`.
  • Improved code size and compile time for dependent crates.

New Features

  • Implemented `From<Bytes>` for `Message`.
  • Implemented `OptionalFromRequest` for `Json`.
  • Implemented `OptionalFromRequest` for `Extension`.
  • Added customizable read buffer capacity for `WebSocketUpgrade`.

Full Release Notes

- **added:** Implement `From<Bytes>` for `Message` ([#3273])
- **added:** Implement `OptionalFromRequest` for `Json` ([#3142])
- **added:** Implement `OptionalFromRequest` for `Extension` ([#3157])
- **added:** Allow setting the read buffer capacity of `WebSocketUpgrade` ([#3178])
- **changed:** Improved code size / compile time of dependent crates ([#3285], [#3294])

[#3273]: https://github.com/tokio-rs/axum/pull/3273
[#3142]: https://github.com/tokio-rs/axum/pull/3142
[#3157]: https://github.com/tokio-rs/axum/pull/3157
[#3178]: https://github.com/tokio-rs/axum/pull/3178
[#3285]: https://github.com/tokio-rs/axum/pull/3285
[#3294]: https://github.com/tokio-rs/axum/pull/3294