aster_forge_actix_middleware/lib.rs
1//! Shared Actix Web middleware for Aster services.
2//!
3//! This crate contains HTTP middleware that is tied to Actix Web rather than to
4//! a product domain. It keeps framework-specific code out of `aster_forge_api`,
5//! which remains focused on framework-neutral response and pagination helpers.
6#![cfg_attr(
7 not(test),
8 deny(
9 clippy::unwrap_used,
10 clippy::unreachable,
11 clippy::expect_used,
12 clippy::panic,
13 clippy::unimplemented,
14 clippy::todo
15 )
16)]
17
18pub mod client_ip;
19pub mod cors;
20pub mod csrf;
21#[cfg(feature = "metrics")]
22pub mod metrics;
23pub mod rate_limit;
24pub mod request_id;
25pub mod security_headers;