axum-extra-v0.12.3

tokio-rs/axumaxum-extra-v0.12.3Dec 20, 2025by jplatte

AI Summary

A maintenance release with feature dependency changes, behavioral improvements, and bug fixes. The release includes a fix for integer underflow when streaming empty files and adds trailing newlines to pretty-printed JSON responses.

Key Highlights

  • typed-routing feature now automatically enables routing feature
  • ErasedJson::pretty now adds trailing newline to response bodies
  • Fixed integer underflow in FileStream::try_range_response for empty files

New Features

  • Feature dependency change: typed-routing enables routing
  • Improved JSON pretty printing with trailing newline
  • Bug fix for FileStream with empty files

Full Release Notes

- **changed:** Make the `typed-routing` feature enable the `routing` feature ([#3514])
- **changed:** Add trailing newline to `ErasedJson::pretty` response bodies ([#3526])
- **fixed:** Fix integer underflow in `FileStream::try_range_response` for empty files ([#3566])

[#3514]: https://github.com/tokio-rs/axum/pull/3514
[#3526]: https://github.com/tokio-rs/axum/pull/3526
[#3566]: https://github.com/tokio-rs/axum/pull/3566