road-runner-common 0.9.0

Shared Rust utilities for exchange ecosystem backend services.
Documentation
#![forbid(unsafe_code)]

pub mod auth;
pub mod capabilities;
pub mod config;
pub mod error;
pub mod observability;
pub mod pagination;
pub mod permissions;
pub mod response;
pub mod startup_banner;

#[cfg(feature = "gateway")]
pub mod gateway;

#[cfg(feature = "authz")]
pub mod authz;

#[cfg(feature = "kafka")]
pub mod kafka;

#[cfg(feature = "openapi")]
pub mod openapi;

#[cfg(feature = "web")]
pub mod middleware;

#[cfg(feature = "web")]
pub mod web;

pub use auth::{PrincipalKind, UserContext};
pub use error::{AppError, ErrorCode};
pub use pagination::{PageRequest, Paged};
pub use response::{ApiErrorDetail, ApiMeta, ApiResponse};

#[cfg(feature = "gateway")]
pub use gateway::GatewayAuthConfig;

#[cfg(all(feature = "gateway", feature = "web"))]
pub use gateway::gateway_resolver;

#[cfg(feature = "authz")]
pub use authz::{Decision, Pdp};