What problem does it solve?
This Skill provides patterns and best practices for building robust, production-ready web APIs using the Axum framework in Rust, addressing common challenges in API development.
Core Features & Use Cases
- Type-Safe Handlers: Utilize Rust's type system for secure request handling.
- Composable Middleware: Integrate logging, authentication, and rate limiting using Tower middleware.
- Structured Error Handling: Implement consistent error responses across your API.
- Graceful Shutdown: Ensure your server handles termination signals gracefully.
- Testing Utilities: Write effective unit and integration tests for your API routes.
- Use Case: Develop a microservice that exposes a REST API for user management, ensuring all requests are logged, authenticated, and errors are returned in a standardized JSON format.
Quick Start
Use the axum skill to create a basic HTTP server with a /health endpoint that returns 'ok'.