Skip to main content

road_runner_common/
lib.rs

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