axum breaking changes
Updated December 4, 2026
On this page
Latest version 0.8.9, released April 14, 2026. Source repository
Its 0.8.9 release requires Rust 1.80 or later. Rust end of life dates.
axum 0.8.9 breaking changes
- Behavior changed
The minimum supported Rust compiler is now 1.80. Users on older Rust toolchains must upgrade before building this release. github.com
axum 0.8.5 breaking changes
- Behavior changed
Request bodies with extra characters after the JSON document are now rejected instead of accepted. Code that sends such bodies must send valid JSON. github.com - Configuration changed
The minimum supported Rust version is now 1.78. Projects on older Rust toolchains must upgrade. github.com - Signature changed
axum::response::sse::Event::data
Was fn data<T>(mut self, data: T) -> Event where T: AsRef<str>,; now fn data<T>(self, data: T) -> Self where T: AsRef<str>,. crates.io - Signature changed
axum::response::sse::Event::json_data
Was fn json_data<T>(mut self, data: T) -> Result<Event, axum_core::Error> where T: serde::Serialize,; now fn json_data<T>(self, data: T) -> Result<Self, axum_core::Error> where T: serde_core::Serialize,. crates.io - Signature changed
axum::response::Sse::keep_alive
Was fn keep_alive(mut self, keep_alive: KeepAlive) -> Self; now fn keep_alive(self, keep_alive: KeepAlive) -> Sse<KeepAliveStream<S>>. crates.io - Signature changed
axum::response::sse::Sse::keep_alive
Was fn keep_alive(mut self, keep_alive: KeepAlive) -> Self; now fn keep_alive(self, keep_alive: KeepAlive) -> Sse<KeepAliveStream<S>>. crates.io - Signature changed
axum::test_helpers::RequestBuilder::json
Was fn json<T>(mut self, json: &T) -> Self where T: serde::Serialize,; now fn json<T>(mut self, json: &T) -> Self where T: serde_core::Serialize,. crates.io - Signature changed
axum::test_helpers::TestResponse::json
Was async fn json<T>(self) -> T where T: serde::de::DeserializeOwned,; now async fn json<T>(self) -> T where T: serde_core::de::DeserializeOwned,. crates.io
axum 0.8.0 breaking changes
- Removed
axum::async_trait
axum::async_trait was removed in axum 0.8.0 crates.io - Removed
axum::extract::Host
The Host extractor is no longer in axum and must be imported from axum-extra instead. crates.io - Removed
axum::extract::ws::WebSocket::close
Code calling WebSocket::close must instead send close messages explicitly. crates.io - Removed
axum::serve::IncomingStream::local_addr
axum::serve::IncomingStream::local_addr was removed in axum 0.8.0 crates.io - Removed
axum::serve::Serve::tcp_nodelay
Use serve::ListenerExt to set TCP stream properties instead. crates.io - Removed
axum::serve::WithGracefulShutdown::tcp_nodelay
Use serve::ListenerExt to set TCP stream properties instead. crates.io - Removed
Query
Query no longer implements OptionalFromRequestParts, so Option<Query<T>> code no longer compiles. github.com - Behavior changed
Routes must use the new {single} and {*many} path parameter syntax instead of :single and *many, because the old syntax now panics. github.com - Behavior changed
Option<Path<T>>
Option<Path<T>> no longer returns None for all error conditions and now rejects the request in many cases. github.com - Behavior changed
Path
Tuple and tuple_struct Path extractors now reject requests where the number of parameters does not match the tuple length exactly. github.com
And 47 more in this version. Sign up to see every change
axum 0.7.0 breaking changes
- Removed
axum::body::BoxBody
Use axum::body::Body::new instead. crates.io - Removed
axum::body::boxed
axum::body::boxed was removed in axum 0.7.0 crates.io - Removed
axum::body::Empty
Use axum::body::Body::empty instead. crates.io - Removed
axum::body::Full
Use axum::body::Body::from instead. crates.io - Removed
axum::body::StreamBody
axum::body::StreamBody was removed in axum 0.7.0 crates.io - Removed
axum::extract::BodyStream
axum::body::Body implements Stream and FromRequest directly, so use it instead. crates.io - Removed
axum::extract::RawBody
axum::body::Body implements FromRequest directly, so use it instead. crates.io - Removed
axum::extract::TypedHeader
axum::extract::TypedHeader was removed in axum 0.7.0 crates.io - Removed
axum::extract::WebSocketUpgrade::max_send_queue
axum::extract::WebSocketUpgrade::max_send_queue was removed in axum 0.7.0 crates.io - Removed
axum::extract::ws::DefaultOnFailedUpdgrade
Update references to the new spelling. crates.io
And 113 more in this version. Sign up to see every change
axum 0.6.0 breaking changes
- Removed
Routes no longer redirect between /foo and /foo/. Add explicit routes for both, or use route_with_tsr to keep the old behavior. github.com - Removed
axum::extract::ContentLengthLimit
Use DefaultBodyLimit instead. crates.io - Removed
axum::extract::extractor_middleware
Use axum::middleware::from_extractor instead. crates.io - Removed
axum::extract::RequestParts
Implement FromRequestParts or FromRequest instead. crates.io - Removed
axum::handler::Handler::into_make_service
axum::handler::Handler::into_make_service was removed in axum 0.6.0 crates.io - Removed
axum::handler::Handler::into_make_service_with_connect_info
axum::handler::Handler::into_make_service_with_connect_info was removed in axum 0.6.0 crates.io - Removed
axum::handler::Handler::into_service
axum::handler::Handler::into_service was removed in axum 0.6.0 crates.io - Removed
axum::handler::IntoService
Use HandlerService instead. crates.io - Removed
BodyAlreadyExtracted
BodyAlreadyExtracted is removed. Code that matched on it must be updated. github.com - Removed
handler.WithState
handler::WithState is merged into HandlerService. Update code that names the old type. github.com
And 77 more in this version. Sign up to see every change
axum 0.6.0-rc.5 breaking changes
- Removed
Router.inherit_state
Use Router::with_state instead. github.com - Behavior changed
Router.merge
Merged routers must use the same state type; use FromRef for substates. github.com - Behavior changed
Router.nest
Nested routers must use the same state type; use FromRef for substates. github.com - Signature changed
Router.with_state
Create the router with Router::new and call with_state at the end. github.com
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
axum 0.6.0-rc.4 breaking changes
- Removed
handler.WithState
Use HandlerService instead. github.com - Renamed
FormRejection.FailedToDeserializeQueryString
Match on FailedToDeserializeForm instead. github.com
And 8 more in this version.
axum 0.6.0-rc.2 breaking changes
- Behavior changed
Bytes.from_request
Bodies over 2 MB are rejected unless the DefaultBodyLimit::disable() middleware is added. github.com - Behavior changed
Form
Large form bodies are rejected unless the limit is disabled. github.com
And 3 more in this version.
axum 0.6.0-rc.1 breaking changes
- Removed
BodyAlreadyExtracted
This error type no longer exists. github.com - Behavior changed
Handlers with more than one body-consuming extractor no longer compile; only the last extractor may consume the request. github.com
And 13 more in this version.
axum 0.5.0 breaking changes
- Removed
axum::AddExtension
AddExtension is now under the middleware module rather than the root module. crates.io - Removed
axum::AddExtensionLayer
AddExtensionLayer has been removed. Use Extension instead, which implements tower::Layer. crates.io
And 44 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.