axum
Installation
SKILL.md
Axum Framework Guide
Applies to: Axum 0.7+, Rust Web APIs, Microservices Complements:
.claude/skills/rust-guide/SKILL.md
Core Principles
- Tower-First: Axum is built on Tower; embrace
Service,Layer, and middleware composition - Type-Safe Extraction: Use compile-time extractors for request data -- no manual parsing
- Async Throughout: All handlers are async; never block the Tokio runtime
- Modular Routing: Compose routers with
mergeandnest; separate public from protected routes - Structured Errors: Implement
IntoResponsefor custom error types; return appropriate HTTP status codes
Project Structure
myproject/
├── Cargo.toml
├── src/
Related skills