orion-server 1.0.0

Turn business logic into live REST/Kafka services. Declare workflows as JSON and Orion runs them, with rate limiting, circuit breakers, versioning, and observability built in
//! Orion — declarative services runtime.
//!
//! This crate is the implementation of the `orion-server` binary: business
//! logic exposed as channels (service endpoints) and workflows (dataflow-rs
//! task pipelines) behind a REST API, shipped as a single binary with an
//! embedded SQLite database (PostgreSQL/MySQL selectable at runtime).
//!
//! # This is not an embedding API
//!
//! The library target exists for two consumers: the `orion-server` binary and
//! the integration test suite. Everything below is `pub` because those two need
//! it, not because it is offered for use.
//!
//! **Nothing here is covered by semver.** Module layout, type names, function
//! signatures and trait shapes change whenever the binary needs them to,
//! including in patch releases. The crate version tracks the *product* — its
//! HTTP API, config surface, workflow JSON contract, metric names and database
//! schema, which is what 1.0 stabilises. It does not describe this Rust surface,
//! and a `1.x` bump is not a promise about any item on this page.
//!
//! If you want to run Orion, use the binary. See the
//! [documentation](https://docs.goplasmatic.io/) for operating it, and
//! `docs/src/api/` for the interfaces that *are* stable.
//!
//! If you are reading this to understand the code, start at
//! [`bootstrap`] (the startup sequence, doc-hidden but public),
//! [`server::routes::data`] (the request path) and [`engine`] (the workflow
//! runtime).
#![warn(clippy::unwrap_used, clippy::panic)]

/// Startup wiring shared by the binary and the test harness. Doc-hidden:
/// reachable so tests exercise the REAL boot path (engine components,
/// fail-fast connector refusal, background tasks) instead of reimplementing
/// it, but not part of the documented 1.0 API surface.
#[doc(hidden)]
pub mod bootstrap;
pub mod channel;
pub mod cluster;
pub mod config;
pub mod connector;
pub mod engine;
pub mod errors;
pub mod kafka;
pub mod metrics;
pub mod preflight;
pub(crate) mod query;
pub mod queue;
pub mod server;
pub mod storage;
pub mod validation;