road_runner_common/
lib.rs1#![forbid(unsafe_code)]
2
3pub mod auth;
4pub mod capabilities;
5pub mod config;
6pub mod error;
7pub mod observability;
8pub mod pagination;
9pub mod permissions;
10pub mod response;
11
12#[cfg(feature = "gateway")]
13pub mod gateway;
14
15#[cfg(feature = "openapi")]
16pub mod openapi;
17
18#[cfg(feature = "web")]
19pub mod middleware;
20
21#[cfg(feature = "web")]
22pub mod web;
23
24pub use auth::{PrincipalKind, UserContext};
25pub use error::{AppError, ErrorCode};
26pub use pagination::{PageRequest, Paged};
27pub use response::{ApiErrorDetail, ApiMeta, ApiResponse};
28
29#[cfg(feature = "gateway")]
30pub use gateway::GatewayAuthConfig;
31
32#[cfg(all(feature = "gateway", feature = "web"))]
33pub use gateway::gateway_resolver;