axum-v0.8.4

tokio-rs/axumaxum-v0.8.4Apr 30, 2025by jplatte

AI Summary

This release adds a method to reset router fallbacks and improves WebSocket protocol handling.

Key Highlights

  • Added `Router::reset_fallback` method.
  • Added `WebSocketUpgrade::selected_protocol`.
  • Fixed panic when handling overlapping method routes.
  • Fixed tokio task leak when using `serve` without graceful shutdown.

New Features

  • Added `Router::reset_fallback`.
  • Added `WebSocketUpgrade::selected_protocol`.

Full Release Notes

- **added:** `Router::reset_fallback` ([#3320])
- **added:** `WebSocketUpgrade::selected_protocol` ([#3248])
- **fixed:** Panic location for overlapping method routes ([#3319])
- **fixed:** Don't leak a tokio task when using `serve` without graceful shutdown ([#3129])

[#3319]: https://github.com/tokio-rs/axum/pull/3319
[#3320]: https://github.com/tokio-rs/axum/pull/3320
[#3248]: https://github.com/tokio-rs/axum/pull/3248
[#3129]: https://github.com/tokio-rs/axum/pull/3129