Expand description
Actix Tower — Bringing the Rust Web Ecosystem to Actix Web
A collection of extensions that modernize the Actix Web ecosystem while preserving its performance and stability.
§Quick Start
use actix_tower::prelude::*;
use actix_web::App;
let app = App::new()
.wrap(RequestId::new())
.wrap(Timeout::new(std::time::Duration::from_secs(30)))
.wrap(tower_layer!(tower_http::compression::CompressionLayer::new()));Re-exports§
Modules§
- compat
- Compatibility layers for bridging Actix Web with the wider Rust ecosystem.
- extract
- Ergonomic extractors that eliminate boilerplate.
- internal
- Internal implementation details.
- macros
- Declarative macros for reducing boilerplate.
- middleware
- Common middleware for Actix Web applications.
- prelude
- Prelude module — brings the most commonly used items into scope.
- utils
- Utility functions, types, and traits.
Macros§
- extract
- Define a custom extractor that wraps an existing Actix extractor.
- handler
- Define a handler with automatic extractor wrapping.
- route
- Define a route with method and path.
- tower_
layer - Macro to ergonomically wrap a Tower layer for use with Actix.