What problem does it solve?
This Skill provides a comprehensive guide and best practices for developing robust, performant, and maintainable web services and HTTP APIs using Rust, focusing on modern frameworks like Axum and Actix-web.
Core Features & Use Cases
- Framework Selection: Guidance on choosing between Axum, Actix-web, and Rocket.
- API Design: Patterns for handlers, state management, and error handling.
- Middleware: Implementing logging, authentication, and other cross-cutting concerns.
- Database Integration: Best practices for integrating with databases using SQLx.
- Project Structure: Domain-driven design patterns for scalable applications.
- Use Case: You need to build a new REST API for a user management system. This Skill will guide you through selecting a framework, designing your API endpoints, handling requests and responses, managing database connections, and structuring your project for maintainability.
Quick Start
Use the rust-web skill to generate a basic Axum application structure with a simple GET endpoint.