Skip to main content

praxis_core/
lib.rs

1// SPDX-License-Identifier: MIT
2// Copyright (c) 2024 Praxis Contributors
3
4#![deny(unreachable_pub)]
5
6//! Core configuration, error types, and server factory for Praxis.
7
8/// Reusable HTTP callout client with circuit breaking and loop prevention.
9#[cfg(feature = "callout")]
10pub mod callout;
11/// YAML configuration parsing and validation.
12pub mod config;
13/// Upstream connection options and endpoint types.
14pub mod connectivity;
15/// Error types shared across the workspace.
16pub mod errors;
17/// Shared health state types for active health checking.
18pub mod health;
19/// Per-instance request ID generation.
20pub mod id;
21/// Key-value store trait and registry.
22pub mod kv;
23/// Tracing subscriber setup.
24pub mod logging;
25/// Process-wide memory pressure monitoring.
26pub mod memory;
27/// Server factory and runtime options.
28pub mod server;
29/// Wall-clock time abstraction for filters.
30pub mod time;
31
32pub use errors::ProxyError;
33pub use server::{PingoraServerRuntime, RuntimeOptions};