Axum Developer's Guide
Reference for building web services with Axum 0.8.x , the Tokio team’s modular HTTP framework for Rust. It covers production deployment, idiomatic patterns, and common pitfalls.
1. Prerequisites & Project Setup
Axum requires Rust 1.80 or later and runs on the Tokio async runtime. The main crate provides routing, extractors, and response types; Tokio supplies the runtime.
Cargo.toml (minimal production‑ready dependencies):
toml
[dependencies]
axum = "0.8.8"