# axum

> HTTP routing and request-handling library for Rust that focuses on ergonomics and modularity

Source: https://talira.ai/catalog/axum-8swp74wx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Library
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend), [languages / rust](https://talira.ai/categories/languages/rust)
- Platforms: web
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes
- Backed by: [Tokio](https://talira.ai/orgs/tokio.md)

axum is a Rust web framework from the Tokio project: an HTTP routing and request-handling library that routes requests to handlers with a macro-free API, parses requests declaratively with extractors, and has a simple, predictable error-handling model. It has no middleware system of its own; it uses tower::Service, so timeouts, tracing, compression and authorization come from the tower and tower-http ecosystem and middleware can be shared with [hyper](https://talira.ai/catalog/hyper-aqygzthr.md) and tonic applications. It's a thin layer over hyper with performance comparable to hyper, and is written in 100% safe Rust (#![forbid(unsafe_code)]).

## Links

- GitHub: https://github.com/tokio-rs/axum
- Docs: https://docs.rs/axum

## Problems it solves

- write an HTTP API in Rust without a pile of macros on every handler
- parse JSON bodies, path and query parameters into typed Rust structs automatically
- reuse the same timeout, tracing and compression middleware across my Rust HTTP and gRPC services
- a fast, low-overhead async HTTP server in Rust that works with the Tokio ecosystem
- add websockets to a Rust web service
- my Rust web framework feels like a black box and I want plain functions and composable layers
- build a small Rust microservice that handles thousands of requests per second on little memory
- a Rust web server written entirely in safe code
- compose small async handler functions into a Rust HTTP service instead of inheriting from framework classes

## Features

- Macro-free routing API
- Declarative request parsing with extractors
- Simple, predictable error handling
- Responses with minimal boilerplate
- tower and tower-http middleware (timeouts, tracing, compression, authorization)
- Middleware shared with hyper and tonic applications
- Thin layer over hyper
- 100% safe Rust

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.77 out of 1.
Signals: maintenance 1.00, adoption 0.89, momentum 0.79, community 1.00, backing 0.30, extensibility 0.20.

- last commit 9 days ago
- 62 commits in the last 90 days
- latest release axum-v0.8.9 7 months ago
- 27.8k GitHub stars
- 468 contributors
- backed by Tokio
- has a plugin system

## Related

- Works with [Tokio](https://talira.ai/catalog/tokio-5dcaannt.md)
- Based on [hyper](https://talira.ai/catalog/hyper-aqygzthr.md)

## Alternatives

- [warp](https://talira.ai/catalog/warp-4484rrwk.md): A super-easy, composable, web server framework for warp speeds.
- [Loco](https://talira.ai/catalog/loco-sdpwth2g.md): The one-person framework for Rust.
