Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsApr 12, 2026·2 min de lecture

Axum — Ergonomic Modular Web Framework for Rust

Axum is a web application framework built on Tokio, Tower, and Hyper. Focuses on ergonomics and modularity with a macro-free routing API, seamless Tower middleware integration, and type-safe extractors. The official Tokio team web framework.

Introduction

Axum is a web application framework built by the Tokio team. It focuses on ergonomics and modularity with no macros — just functions and extractors. Built on top of Tokio, Tower, and Hyper, Axum integrates seamlessly with the entire Tower middleware ecosystem.

What Axum Does

  • Macro-free routing — plain function handlers
  • Extractors — type-safe request data extraction (Json, Path, Query, State)
  • Tower middleware — use any Tower middleware (timeout, rate-limit, tracing)
  • WebSocket — built-in upgrade support
  • State sharing — via Extension or State extractor
  • Nested routers — composable sub-routers
  • Error handling — typed error responses

Comparison

Framework Macro Tower Tokio-native
Axum None Full Yes
Rocket Heavy No Own runtime
Actix Web Moderate No Own runtime

FAQ

Q: Why choose Axum? A: It's officially from Tokio and integrates seamlessly with the whole Tokio ecosystem (Hyper, Tower, Tonic). If you already use Tokio, Axum is the most natural choice.

Sources

Discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires