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 response;
9
10#[cfg(feature = "auth")]
11pub mod tenant;
12
13#[cfg(feature = "gateway")]
14pub mod gateway;
15
16#[cfg(feature = "openapi")]
17pub mod openapi;
18
19#[cfg(feature = "web")]
20pub mod middleware;
21
22#[cfg(feature = "web")]
23pub mod web;
24
25pub use auth::{PrincipalKind, UserContext};
26pub use error::{AppError, ErrorCode};
27pub use pagination::{PageRequest, Paged};
28pub use response::{ApiErrorDetail, ApiMeta, ApiResponse};
29
30#[cfg(feature = "auth")]
31pub use tenant::TenantContext;
32
33#[cfg(feature = "gateway")]
34pub use gateway::GatewayAuthConfig;
35
36#[cfg(all(feature = "gateway", feature = "web"))]
37pub use gateway::gateway_resolver;