Skip to main content

road_runner_common/
lib.rs

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