Announcement

Free to view yesterday and today
Customer Service: cat_manager

Axum - 高效、模块化的Rust Web框架 (基于Tokio, Tower, Hyper)

Axum is an ergonomic and modular web framework for Rust, built on top of Tokio, Tower, and Hyper. It provides a high-level API for building web applications and services with async Rust, focusing on type safety and developer experience.

Rust
Added on 2025年7月2日
View on GitHub
Axum - 高效、模块化的Rust Web框架 (基于Tokio, Tower, Hyper) preview
22,134
Stars
1,204
Forks
Rust
Language

Project Introduction

Summary

Axum is a popular, open-source web application framework written in Rust. It is designed to be highly ergonomic, modular, and performant, making it an excellent choice for building web servers, APIs, and microservices in the Rust ecosystem.

Problem Solved

Building robust, high-performance web applications and services in Rust can be complex due to the nuances of async programming and low-level HTTP handling. Axum simplifies this by providing a modern, opinionated framework that abstracts away much of the boilerplate while retaining flexibility and performance.

Core Features

Type-safe Handlers & Extractors

Allows defining request handlers with type-safe inputs extracted directly from requests (e.g., JSON bodies, path parameters, query strings).

Built on Tower

Leverages Tower's middleware ecosystem, enabling flexible and composable request processing pipelines for tasks like logging, authentication, or rate limiting.

High Performance Async I/O

Supports a wide range of HTTP features and integrates smoothly with the Tokio async runtime for high performance.

Ergonomic Routing

Provides clear and concise routing mechanisms for defining API endpoints and web routes.

Tech Stack

Rust
Tokio
Tower
Hyper
HTTP

使用场景

Axum is well-suited for a variety of web development tasks in Rust:

构建高性能API服务

Details

Building RESTful APIs for web or mobile applications, leveraging Axum's extractors for type-safe request handling.

User Value

Develop fast and robust APIs with reduced boilerplate and increased confidence due to type safety.

开发轻量级微服务

Details

Creating lightweight, efficient microservices that can handle high concurrency, benefiting from Tokio's performance and Axum's low overhead.

User Value

Deploy minimal, performant services that are easy to maintain and scale.

构建动态Web应用后端

Details

Serving dynamic web content, potentially integrating with templating engines or front-end frameworks.

User Value

Provide a solid, performant backend for modern web applications.

Recommended Projects

You might be interested in these projects

skyzhmini-lsm

Explore the internals of modern databases by building a simplified Log-Structured Merge-Tree (LSM-Tree) storage engine in a week. This project serves as a hands-on guide to key concepts like memtables, SSTables, and compaction.

Rust
3456511
View Details

apachejmeter

Apache JMeter is a powerful, open-source load testing tool designed to analyze and measure the performance of web applications and other services under various load conditions. It is used for testing performance both on static and dynamic resources.

Java
88752188
View Details

NekogramNekogram

Nekogram is an open-source third-party Telegram client offering useful modifications and enhancements for a better messaging experience.

Java
229086
View Details