1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! 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
//!
//! ```no_run
//! 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
// ---------------------------------------------------------------------------
/// Re-export of actix_web for convenience.
pub use actix_web;
/// Re-export of tower for convenience.
pub use tower;
/// Re-export of http for convenience.
pub use http;
/// A type-erased, `Send + Sync` error pointer — the canonical Tower error type.
///
/// This is the same type used throughout `tower`, `tower-http`, `axum`, and
/// `hyper`. Custom Tower middleware should use this as `Service::Error`.
pub use crateBoxError;
/// The toolkit version.
pub const VERSION: &str = env!;
/// The toolkit crate name.
pub const NAME: &str = env!;