//! REST runtime helpers built on axum and tower.

pub mod config;
pub mod error;
pub mod layer_stack;
pub mod middleware;
pub mod response;
pub mod route;
pub mod server;

#[cfg(all(feature = "resil", feature = "cache-redis"))]
pub use config::RestRateLimiterConfig;
pub use config::{
    AuthConfig, RestConfig, RestMetricsConfig, RestMiddlewareConfig, RestResilienceConfig,
};
pub use error::{RestError, RestResult};
pub use layer_stack::RestLayerStack;
pub use response::{ApiResponse, PageResponse};
pub use route::RouteSpec;
pub use server::{RestServer, RestService};
