What problem does it solve?
This Skill addresses the complexities of building secure, scalable, and efficient web services, particularly within the Rust ecosystem. It guides developers in making design choices that align with the inherent constraints of web development.
Core Features & Use Cases
- Constraint-Driven Design: Understand how web domain rules (statelessness, concurrency, latency) translate into specific Rust design patterns and implications.
- Framework Guidance: Provides a comparison of popular Rust web frameworks (Axum, Actix-web, Warp, Rocket) and their best use cases.
- Key Crate Identification: Lists essential crates for HTTP handling, client requests, JSON serialization, authentication, and database interaction.
- Pattern Implementation: Demonstrates common design patterns like Extractors, Error Responses, Middleware, and Shared State management.
- Use Case: When designing a new REST API in Rust, use this Skill to understand the trade-offs between different frameworks and how to implement robust error handling and state management.
Quick Start
Use the domain-web skill to understand how to implement shared state management in an Axum web service.