Skip to main content

road_runner_common/
lib.rs

1#![forbid(unsafe_code)]
2
3pub mod auth;
4pub mod capabilities;
5pub mod config;
6#[cfg(feature = "confirm")]
7pub mod confirm;
8pub mod error;
9pub mod observability;
10pub mod pagination;
11pub mod permissions;
12pub mod response;
13pub mod startup_banner;
14
15#[cfg(feature = "gateway")]
16pub mod gateway;
17
18#[cfg(feature = "authz")]
19pub mod authz;
20
21#[cfg(feature = "kafka")]
22pub mod kafka;
23
24#[cfg(feature = "openapi")]
25pub mod openapi;
26
27#[cfg(feature = "web")]
28pub mod middleware;
29
30#[cfg(feature = "web")]
31pub mod web;
32
33pub use auth::{PrincipalKind, UserContext};
34pub use error::{AppError, ErrorCode};
35pub use pagination::{PageRequest, Paged};
36pub use response::{ApiErrorDetail, ApiMeta, ApiResponse};
37
38#[cfg(feature = "gateway")]
39pub use gateway::GatewayAuthConfig;
40
41#[cfg(all(feature = "gateway", feature = "web"))]
42pub use gateway::gateway_resolver;
43
44#[cfg(feature = "authz")]
45pub use authz::{Decision, Pdp};