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