axum-extra-v0.12.0

tokio-rs/axumaxum-extra-v0.12.0Oct 31, 2025by jplatte

AI Summary

A major version bump introducing several breaking changes including the removal of the `async-stream` feature, body type mapping changes, and opt-in feature gates for various utilities.

Key Highlights

  • Removed unused `async-stream` feature.
  • New features require explicit opt-in flags (e.g., `cached`, `handler`, `middleware`).
  • `option_layer` now maps response body types to `axum::body::Body`.
  • Upgraded `prost` dependency to version 0.14.

Breaking Changes

  • Removed unused `async-stream` feature.
  • `option_layer` now maps the `Response` body type to `axum::body::Body`.
  • New features require opting in via feature flags.
  • Upgraded `prost` dependency to v0.14.

Full Release Notes

- **breaking:** Remove unused `async-stream` feature, which was accidentally
  introduced as an implicit feature through an optional dependency which was no
  longer being used ([#3298])
- **breaking:** `option_layer` now maps the `Response` body type to `axum::body::Body` ([#3469])
- **breaking:** Some new features are added which need to be opted in ([#3485]).
  - `Cached` extractor requires `cached` feature.
  - The handler utilities require `handler` feature.
  - The middleware utilities require `middleware` feature.
  - `OptionalPath` extractor requires `optional-path` feature.
  - The routing utilities require `routing` feature.
  - `WithRejection` extractor requires `with-rejection` feature.
- **breaking:** Upgraded `prost` dependency to v0.14. ([#3517])

[#3298]: https://github.com/tokio-rs/axum/pull/3298
[#3469]: https://github.com/tokio-rs/axum/pull/3469
[#3485]: https://github.com/tokio-rs/axum/pull/3485
[#3517]: https://github.com/tokio-rs/axum/pull/3517