Axum Code Reviewer

•
64
•

Performs deep code reviews for Rust-based Axum web services to ensure idiomatic routing, state management, and middleware usage.

This skill provides specialized domain expertise for the Axum web framework, helping developers maintain high-quality Rust HTTP services. It intelligently analyzes routing patterns, ensures correct extractor ordering, validates shared state implementations, and checks for proper error handling via the IntoResponse trait. Updated for Axum 0.7 and Rust Edition 2024, it identifies version-specific improvements such as migrating from async-trait to native async functions and utilizing std::sync::LazyLock for shared resources. By enforcing a rigorous verification protocol, it prevents common pitfalls like leaking internal errors or misconfiguring Tower middleware layers.

主要功能

01Validates Axum 0.7+ and Rust Edition 2024 patterns
02Checks extractor ordering to prevent silent body consumption failures
03Reviews error handling to prevent sensitive internal data leaks
04Analyzes Tower middleware layering and execution order
0564 GitHub stars
06Audits state management for thread-safe shared resources using State<T>

使用场景

01Refactoring legacy Axum 0.6 codebases to modern Axum 0.7 standards
02Modernizing Rust web services to use Edition 2024 features like native async traits
03Conducting automated peer-level code reviews for Rust web APIs