axum-v0.7.6

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

AI Summary

Performance and usability improvements including TCP configuration options, route inspection utilities, and dependency updates.

Key Highlights

  • Avoided Arc cloning during Path deserialization
  • Added tcp_nodelay options for Serve and GracefulShutdown
  • Added Router::has_routes function
  • Added Serve::local_addr function
  • Updated tokio-tungstenite to version 0.23

New Features

  • tcp_nodelay options
  • Router::has_routes
  • Serve::local_addr

Full Release Notes

- **change:** Avoid cloning `Arc` during deserialization of `Path`
- **added:** `axum::serve::Serve::tcp_nodelay` and `axum::serve::WithGracefulShutdown::tcp_nodelay` ([#2653])
- **added:** `Router::has_routes` function ([#2790])
- **change:** Update tokio-tungstenite to 0.23 ([#2841])
- **added:** `Serve::local_addr` and `WithGracefulShutdown::local_addr` functions ([#2881])

[#2653]: https://github.com/tokio-rs/axum/pull/2653
[#2790]: https://github.com/tokio-rs/axum/pull/2790
[#2841]: https://github.com/tokio-rs/axum/pull/2841
[#2881]: https://github.com/tokio-rs/axum/pull/2881