actix-web
Installation
SKILL.md
Actix-web Framework Guide
Applies to: Actix-web 4+, Rust Web APIs, High-Performance Services Complements:
.claude/skills/rust-guide/SKILL.md
Core Principles
- Type-Safe Extraction: Use extractors (
web::Json,web::Path,web::Query) for request data - Thin Handlers: Handlers delegate to services; no business logic in handlers
- Structured Errors: Implement
ResponseErrorfor all error types; never return raw strings - Shared State via
web::Data: Application state is injected, never global - Middleware for Cross-Cutting: Auth, logging, CORS belong in middleware, not handlers