Rust Axum Web APIs
Build high-performance web APIs in Rust with Axum. Generates route handlers, middleware, extractors, error handling, database integration with SQLx, and async patterns on the Tokio runtime.
This skill helps you build production APIs with Axum, the ergonomic Rust web framework built on Tokio and Tower. It generates typed route handlers, implements middleware for auth and logging, configures SQLx database pools, handles errors with proper HTTP responses, and structures projects for maintainability.
When to use
Use when building high-performance APIs in Rust, creating microservices that need maximum throughput, or when you need memory-safe backend code with zero garbage collection pauses.
Examples
CRUD API with SQLx
Build a REST API with PostgreSQL database access
Create an Axum REST API for a blog with SQLx PostgreSQL, proper error handling, pagination, and JWT authentication middleware
WebSocket chat server
Build a real-time chat server in Rust
Build an Axum WebSocket chat server with rooms, broadcast messaging, and connection management using Tokio channels