---
title: "axum 0.8.9 Breaking Changes on crates.io | Since.dev"
description: "What each axum release removed, renamed or changed: 356 breaking changes in 10 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/axum
last_updated: 2026-12-04
---

# axum breaking changes

axum 0.8.9 (April 14, 2026) is its newest release with breaking changes. The first: axum 0.8.9 requires Rust 1.80 or later. Every breaking API change we have recorded in axum on crates.io: 356 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.8.9`, released April 14, 2026. [Source repository](https://github.com/tokio-rs/axum)

Its 0.8.9 release requires [Rust 1.80](https://since.dev/calendar/rust/1.80.md) or later. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.5.0](#v-0-5-0) to [0.8.9](#v-0-8-9): 310 breaking changes in 9 versions.

## axum 0.8.9 breaking changes

axum 0.8.9, released April 14, 2026: 1 breaking change.

- **Behavior changed**  

The minimum supported Rust compiler is now 1.80. Users on older Rust toolchains must upgrade before building this release. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.9)

## axum 0.8.5 breaking changes

axum 0.8.5, released September 28, 2025: 8 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](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.5)
- **Configuration changed**  

The minimum supported Rust version is now 1.78. Projects on older Rust toolchains must upgrade. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.5)
- **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](https://crates.io/crates/axum/0.8.5)
- **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](https://crates.io/crates/axum/0.8.5)
- **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](https://crates.io/crates/axum/0.8.5)
- **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](https://crates.io/crates/axum/0.8.5)
- **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](https://crates.io/crates/axum/0.8.5)
- **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](https://crates.io/crates/axum/0.8.5)

## axum 0.8.0 breaking changes

axum 0.8.0, released January 1, 2025: 57 breaking changes.

- **Removed** `axum::async_trait`  

axum::async_trait was removed in axum 0.8.0 [crates.io](https://crates.io/crates/axum/0.8.0)
- **Removed** `axum::extract::Host`  

The Host extractor is no longer in axum and must be imported from axum-extra instead. [crates.io](https://crates.io/crates/axum/0.8.0)
- **Removed** `axum::extract::ws::WebSocket::close`  

Code calling WebSocket::close must instead send close messages explicitly. [crates.io](https://crates.io/crates/axum/0.8.0)
- **Removed** `axum::serve::IncomingStream::local_addr`  

axum::serve::IncomingStream::local_addr was removed in axum 0.8.0 [crates.io](https://crates.io/crates/axum/0.8.0)
- **Removed** `axum::serve::Serve::tcp_nodelay`  

Use serve::ListenerExt to set TCP stream properties instead. [crates.io](https://crates.io/crates/axum/0.8.0)
- **Removed** `axum::serve::WithGracefulShutdown::tcp_nodelay`  

Use serve::ListenerExt to set TCP stream properties instead. [crates.io](https://crates.io/crates/axum/0.8.0)
- **Removed** `Query`  

Query no longer implements OptionalFromRequestParts, so Option\<Query\<T>> code no longer compiles. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.0)
- **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](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.0)
- **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](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.0)
- **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](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.0)

And 47 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## axum 0.7.0 breaking changes

axum 0.7.0, released November 27, 2023: 123 breaking changes.

- **Removed** `axum::body::BoxBody`  

Use axum::body::Body::new instead. [crates.io](https://crates.io/crates/axum/0.7.0)
- **Removed** `axum::body::boxed`  

axum::body::boxed was removed in axum 0.7.0 [crates.io](https://crates.io/crates/axum/0.7.0)
- **Removed** `axum::body::Empty`  

Use axum::body::Body::empty instead. [crates.io](https://crates.io/crates/axum/0.7.0)
- **Removed** `axum::body::Full`  

Use axum::body::Body::from instead. [crates.io](https://crates.io/crates/axum/0.7.0)
- **Removed** `axum::body::StreamBody`  

axum::body::StreamBody was removed in axum 0.7.0 [crates.io](https://crates.io/crates/axum/0.7.0)
- **Removed** `axum::extract::BodyStream`  

axum::body::Body implements Stream and FromRequest directly, so use it instead. [crates.io](https://crates.io/crates/axum/0.7.0)
- **Removed** `axum::extract::RawBody`  

axum::body::Body implements FromRequest directly, so use it instead. [crates.io](https://crates.io/crates/axum/0.7.0)
- **Removed** `axum::extract::TypedHeader`  

axum::extract::TypedHeader was removed in axum 0.7.0 [crates.io](https://crates.io/crates/axum/0.7.0)
- **Removed** `axum::extract::WebSocketUpgrade::max_send_queue`  

axum::extract::WebSocketUpgrade::max_send_queue was removed in axum 0.7.0 [crates.io](https://crates.io/crates/axum/0.7.0)
- **Removed** `axum::extract::ws::DefaultOnFailedUpdgrade`  

Update references to the new spelling. [crates.io](https://crates.io/crates/axum/0.7.0)

And 113 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## axum 0.6.0 breaking changes

axum 0.6.0, released November 25, 2022: 87 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](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0)
- **Removed** `axum::extract::ContentLengthLimit`  

Use DefaultBodyLimit instead. [crates.io](https://crates.io/crates/axum/0.6.0)
- **Removed** `axum::extract::extractor_middleware`  

Use axum::middleware::from_extractor instead. [crates.io](https://crates.io/crates/axum/0.6.0)
- **Removed** `axum::extract::RequestParts`  

Implement FromRequestParts or FromRequest instead. [crates.io](https://crates.io/crates/axum/0.6.0)
- **Removed** `axum::handler::Handler::into_make_service`  

axum::handler::Handler::into_make_service was removed in axum 0.6.0 [crates.io](https://crates.io/crates/axum/0.6.0)
- **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](https://crates.io/crates/axum/0.6.0)
- **Removed** `axum::handler::Handler::into_service`  

axum::handler::Handler::into_service was removed in axum 0.6.0 [crates.io](https://crates.io/crates/axum/0.6.0)
- **Removed** `axum::handler::IntoService`  

Use HandlerService instead. [crates.io](https://crates.io/crates/axum/0.6.0)
- **Removed** `BodyAlreadyExtracted`  

BodyAlreadyExtracted is removed. Code that matched on it must be updated. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0)
- **Removed** `handler.WithState`  

handler::WithState is merged into HandlerService. Update code that names the old type. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0)

And 77 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## axum 0.6.0-rc.5 breaking changes

axum 0.6.0-rc.5, released November 25, 2022: 4 breaking changes.

- **Removed** `Router.inherit_state`  

Use Router::with_state instead. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.5)
- **Behavior changed** `Router.merge`  

Merged routers must use the same state type; use FromRef for substates. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.5)
- **Behavior changed** `Router.nest`  

Nested routers must use the same state type; use FromRef for substates. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.5)
- **Signature changed** `Router.with_state`  

Create the router with Router::new and call with_state at the end. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.5)

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### axum 0.6.0-rc.4 breaking changes

axum 0.6.0-rc.4, released November 25, 2022: 10 breaking changes.

- **Removed** `handler.WithState`  

Use HandlerService instead. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.4)
- **Renamed** `FormRejection.FailedToDeserializeQueryString`  

Match on FailedToDeserializeForm instead. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.4)

And 8 more in this version.

### axum 0.6.0-rc.2 breaking changes

axum 0.6.0-rc.2, released November 25, 2022: 5 breaking changes.

- **Behavior changed** `Bytes.from_request`  

Bodies over 2 MB are rejected unless the DefaultBodyLimit::disable() middleware is added. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.2)
- **Behavior changed** `Form`  

Large form bodies are rejected unless the limit is disabled. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.2)

And 3 more in this version.

### axum 0.6.0-rc.1 breaking changes

axum 0.6.0-rc.1, released November 25, 2022: 15 breaking changes.

- **Removed** `BodyAlreadyExtracted`  

This error type no longer exists. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.1)
- **Behavior changed**  

Handlers with more than one body-consuming extractor no longer compile; only the last extractor may consume the request. [github.com](https://github.com/tokio-rs/axum/releases/tag/axum-v0.6.0-rc.1)

And 13 more in this version.

### axum 0.5.0 breaking changes

axum 0.5.0, released March 31, 2022: 46 breaking changes.

- **Removed** `axum::AddExtension`  

AddExtension is now under the middleware module rather than the root module. [crates.io](https://crates.io/crates/axum/0.5.0)
- **Removed** `axum::AddExtensionLayer`  

AddExtensionLayer has been removed. Use Extension instead, which implements tower::Layer. [crates.io](https://crates.io/crates/axum/0.5.0)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
