Axum Version Line and Stability Notes

Understand how Axum versioning works, what 0.x means, the key changes between 0.7 and 0.8, and how to approach upgrades safely.

Axum Version Line and Stability Notes

When you start using Axum, you will see version numbers like 0.7, 0.8, and maybe even 0.8.1. Those numbers are not random. They tell you how the library has changed and whether your existing code will still work when you upgrade. This page explains what those version numbers mean, why Axum is still at 0.x even though it is widely used, and what you need to know about moving from Axum 0.7 to 0.8.

If you have already worked with other libraries, you might be used to version 1.0 meaning "stable, no more breaking changes." Axum is not there yet, but that does not mean it is unsafe or experimental. It means the maintainers still reserve the right to change the public API in minor releases. This page will help you understand that situation and give you a clear upgrade path.

What Version Numbers Mean for a Library

A version number usually has three parts: major.minor.patch. For example, in 0.8.9:

  • 0 is the major version
  • 8 is the minor version
  • 9 is the patch version

This system is called semantic versioning, often shortened to SemVer. The basic rule is:

  • Major version (first number) changes when there are breaking changes that require you to modify your code.
  • Minor version (second number) changes when new features are added in a backward-compatible way.
  • Patch version (third number) changes when bugs are fixed without changing behavior.

However, there is a special convention for versions that start with 0. Before 1.0, the first number is 0, and the second number effectively acts like the major version. In other words, for a 0.x library, a change from 0.7 to 0.8 can include breaking changes. Patch releases (0.7.1, 0.7.2) should still only contain bug fixes.

Why 0.x libraries still follow rules:

The Rust ecosystem widely adopted this interpretation. Even before 1.0, maintainers try to keep patch releases safe. But minor releases are allowed to break your code. That is why upgrading from 0.7 to 0.8 requires checking the changelog.

Axum has not reached 1.0 yet. The maintainers have not promised that the API will stay the same forever. But they do provide clear release notes and migration guides for each minor version bump.

Axum's Current Version Line

As of late 2026, the latest stable release of Axum is version 0.8.9, released 14 April 2026. Axum 0.8 was released after 0.7, and it introduced several changes that make older code incompatible. The library is still developed and maintained by the Tokio team, the same people who build the async runtime that Axum runs on.

The minimum supported Rust version (MSRV) for the 0.8 line moved over time: it was 1.75 at 0.8.0, rose to 1.78 in 0.8.5, and reached 1.80 only in 0.8.9. So "Axum 0.8 needs Rust 1.80" is true for the latest patch release, but not for the whole 0.8 line - 0.8.0 compiled with Rust 1.75. If you are using an older Rust toolchain than the release you depend on needs, you will have to update it before upgrading Axum.

Axum's version line is also tied to the versions of its foundational crates: tokio, hyper, and tower. Axum 0.8 works with the current stable versions of those crates, but you should still check their compatibility when you upgrade. Usually, using the latest versions of all of them works out of the box.

You can use Axum 0.8 in production:

Many teams run Axum 0.x in production every day. The 0.x label does not mean the library is buggy or incomplete. It means the API may change in future minor releases, and you should be prepared for that.

Starter Example - Specifying Axum 0.8

Before diving into the upgrade details, let's look at a minimal project that uses Axum 0.8. This example shows the correct way to specify the version in Cargo.toml and a small server that runs with the new syntax.

Create a new Rust project and add Axum 0.8:

cargo new axum-version-example
cd axum-version-example
cargo add axum@0.8
cargo add tokio@1 --features tokio/full

Now open Cargo.toml. It should look similar to this:

axum-version-example/Cargo.toml
[package]
name = "axum-version-example"
version = "0.1.0"
edition = "2021"
[dependencies]
axum = "0.8"
tokio = { version = "1", features = ["full"] }

The key line is axum = "0.8". The "0.8" specifier means "any version that is compatible with 0.8", which includes 0.8.0, 0.8.1, 0.8.3, and so on up to 0.8.9. (Note that 0.8.2 was yanked from crates.io, so you will never see it as a normal example version.) It will not automatically upgrade to 0.9 because that would be a different minor version.

Now replace src/main.rs with this code:

axum-version-example/src/main.rs
use axum::{routing::get, Router};
#[tokio::main]
async fn main() {
    let app = Router::new()
        .route("/", get(|| async { "Hello from Axum 0.8!" }));
    let listener = tokio::net::TcpListener::bind("0.0.0.0:3000")
        .await
        .unwrap();
    println!("Listening on http://localhost:3000");
    axum::serve(listener, app).await.unwrap();
}

Run the server with cargo run and open http://localhost:3000 in your browser. You should see the message. This is a working Axum 0.8 application.

Check your Rust version first:

The latest 0.8 release, 0.8.9, requires Rust 1.80 or newer (earlier 0.8 releases needed less: 1.75 at 0.8.0, 1.78 from 0.8.5). If you get a compilation error about the Rust version, run rustup update stable to get the latest toolchain.

The Major Change in Axum 0.8 - Path Parameter Syntax

The most visible breaking change between Axum 0.7 and 0.8 is how you write path parameters in route definitions. A path parameter is a part of the URL that changes, like the user ID in /users/42. In Axum 0.7, you wrote it with a colon:

// Axum 0.7 syntax
.route("/users/:id", get(get_user))

In Axum 0.8, the colon was replaced with curly braces {}. The same route now looks like this:

// Axum 0.8 syntax
.route("/users/{id}", get(get_user))

This change was made to align Axum with common API documentation standards like OpenAPI and with Rust's own format! macro syntax. It makes route definitions look more consistent with other tools in the Rust ecosystem.

Colon syntax no longer works in 0.8:

If you upgrade from 0.7 to 0.8 and leave your route paths using :id, your application will panic at startup when the route is registered - Axum 0.8 treats the old :param syntax as an error, not as a literal character. (You can opt out of that check with Router::without_v07_checks(), but only if you genuinely need the old behaviour.) Always change :param to {param} during the upgrade.

Here is a side-by-side comparison of a router with two path parameters:

use axum::{routing::get, Router};
async fn get_post(Path((user_id, post_id)): Path<(u32, u32)>) -> String {
    format!("User {}, Post {}", user_id, post_id)
}
let app = Router::new()
    .route("/users/:user_id/posts/:post_id", get(get_post));

Notice that only the route path string changed. The extractor signature in the handler stays exactly the same. This is the most common change you will make when upgrading.

Other Changes in Axum 0.8

Beyond the path parameter syntax, Axum 0.8 brought a few other improvements that are less likely to break existing code but are good to know about.

Improved Compiler Diagnostics

Axum 0.8 introduced clearer error messages when a handler does not satisfy the required trait bounds. For example, if you forget to return a type that implements IntoResponse, the compiler message now tells you more precisely what is missing. This makes debugging easier, especially for beginners.

Feature Flag Adjustments

Axum 0.8 adjusted some of its Cargo feature flags. For example, the http1 and http2 features are now more explicit. If you used default features, you probably don't need to change anything. But if you disabled default features and picked specific ones, you might need to update your Cargo.toml. Always check the changelog for the exact list.

Minimum Supported Rust Version

As mentioned, the MSRV rose across the 0.8 line - 1.75 at 0.8.0, 1.78 in 0.8.5, and 1.80 in 0.8.9. Each raise is a breaking change only if you are using an older Rust compiler than the release you are upgrading to needs. Most developers on the stable channel will be fine.

Where to find the full list:

The official Axum repository publishes a CHANGELOG.md file with every release. It lists every breaking change, new feature, and bug fix. Before upgrading any dependency, reading that file is the best way to avoid surprises. You can read it at github.com/tokio-rs/axum/blob/main/axum/CHANGELOG.md, and the release notes for each version at github.com/tokio-rs/axum/releases. Note that the changelog's "Unreleased" section already lists breaking changes queued for a future 0.9, so the 0.8 line is where stable releases live for now.

How to Safely Upgrade from 0.7 to 0.8

If you already have an Axum 0.7 project, the upgrade process is straightforward but requires some manual changes. Here is a step-by-step workflow you can follow.

1

Step 1: Update your Cargo.toml version

Open your Cargo.toml and change the Axum dependency from 0.7 to 0.8. For example:

[dependencies]
axum = "0.8"

Also update related crates that are part of the Axum ecosystem, such as tower-http if you use it. Check the Axum changelog for compatible versions.

2

Step 2: Run cargo build to see errors

Run cargo build in your project. The compiler will flag any code that uses old syntax or removed features. The most common error will be about route paths containing :param. Fix those by replacing :param with {param} and *param with {*param} for wildcards.

3

Step 3: Search for all route strings

Use your editor's search function to find all occurrences of .route( and check the path strings. Replace :name with {name} and *name with {*name}. Do this everywhere, including nested routers and tests.

4

Step 4: Update feature flags if needed

If you used non-default features in Cargo.toml for Axum, compare them with the 0.8 feature list. Some features were renamed or split. Adjust accordingly.

5

Step 5: Run cargo test and your application

After fixing all compilation errors, run cargo test to make sure your routes behave correctly. Then start the server and manually test a few endpoints, especially those with path parameters.

This process is linear: you cannot skip step 1 and expect later steps to work. Following it in order will save you time.

Common Mistakes and Misconceptions

Here are a few things that trip up beginners when dealing with Axum versions.

Thinking 0.x Means Unstable or Unfinished

Some developers see 0.8 and assume the library is not ready for real projects. That is incorrect. Axum 0.x is used in production by many companies. The 0 just means the maintainers are still willing to make breaking changes in minor releases. Once Axum reaches 1.0, the API will be frozen and breaking changes will only come in major version bumps.

Ignoring the Changelog Before Upgrading

A common mistake is to update the version in Cargo.toml and run cargo update without reading what changed. Then the code breaks, and the developer is surprised. Reading the changelog takes a few minutes and tells you exactly what to fix.

Using Caret Requirements and Expecting Automatic Major Upgrades

In Cargo.toml, writing axum = "0.8" allows any compatible patch and minor update within the 0.8 line, but it will never automatically update to 0.9. If you want to upgrade to a new minor version, you must change the version number yourself. This is actually a good thing because it gives you control.

Axum depends on hyper, tower, and other crates. When you upgrade Axum, you should also update tower-http and other ecosystem crates to their compatible versions. The Axum changelog usually lists the minimum required versions of these crates. Mixing old and new versions can cause trait conflicts.

Watch out for wildcard path parameters:

In Axum 0.7, a wildcard parameter was written as *path. In 0.8, it becomes {*path}. Forgetting to change this can silently break routes that should match multiple path segments.

Stability in Practice - What You Can Rely On

Even though Axum is pre-1.0, there are parts of its API that have been stable across several minor releases. For example:

  • The Router type and the route method have existed since early versions.
  • The axum::serve function has been the standard way to run a server since 0.7 (it replaced axum::Server, which was removed in 0.7 when Hyper 1.0 dropped its own server type).
  • The State extractor and Json response type have been stable for a long time.

The maintainers try to minimize breaking changes and only introduce them when there is a strong reason, like the path syntax change that improved consistency with ecosystem standards. When a breaking change does happen, it is well documented.

If your code compiles, it works:

One of the benefits of Rust's strong type system is that the compiler catches most mistakes when you upgrade. If your code compiles after changing versions, there is a very high chance it behaves correctly. You still should run tests, but you can trust the compiler more than in dynamically typed languages.

Summary - Version Awareness as a Developer Skill

Understanding Axum's version line is not just about memorizing what changed in 0.8. It is about adopting a mindset: when you use a library, you are building on top of someone else's code, and that code will evolve. The tools you have are semantic versioning, changelogs, and the Rust compiler. Use them.

The single most important lesson from this page is that Axum 0.8 changed path parameter syntax from :param to {param}. If you only remember one thing, remember that. But also remember to read the changelog before every upgrade, to keep your Rust toolchain up to date, and to not be afraid of using Axum 0.x in production.

Axum will eventually reach 1.0. At that point, the API will be frozen and upgrades will be even safer. Until then, treat every minor version bump as a small migration task, not a problem. With the information on this page, you are ready to handle Axum 0.8 and any future minor releases that follow.