Skip to main content

aster_forge_middleware/
lib.rs

1//! Shared HTTP middleware for Aster services.
2//!
3//! This crate contains product-neutral middleware mechanics and Actix/Axum adapters.
4//! 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
18#[cfg(feature = "actix")]
19pub mod actix;
20#[cfg(feature = "axum")]
21pub mod axum;
22
23/// Framework-neutral middleware kernels shared by both transports.
24pub mod shared;
25
26#[cfg(all(test, feature = "metrics", any(feature = "actix", feature = "axum")))]
27mod test_support;
28
29#[cfg(all(test, feature = "actix", feature = "axum"))]
30mod contract_tests;