actix-web-docs
Installation
SKILL.md
Actix Web — Rust Web Framework
Version: actix-web 4.x | MSRV: Rust 1.72+ | Source: https://actix.rs/docs
Actix Web is a powerful, pragmatic, extremely fast Rust web framework for building HTTP servers and web services. It supports HTTP/1, HTTP/2, TLS/HTTPS, WebSockets, and provides a type-safe request extraction and response system.
Key Benefits
- Extremely fast — one of the fastest web frameworks available
- Type-safe — extractors (
FromRequest) and responders (Responder) provide compile-time guarantees - Async by default — built on Tokio runtime
- Flexible routing — macro-based (
#[get],#[post]) or manualweb::route() - Middleware system — composable
Transform+Servicetraits,wrap_fn,from_fn - WebSocket support — via
actix-wscrate - HTTP/2 support — automatic upgrade with TLS
- Static file serving — via
actix-filescrate - CORS support — via
actix-corscrate - Session management — via
actix-sessioncrate - Actor framework —
actixcrate for actor-based concurrency (WebSocket endpoints)