Skip to main content

bezant_server/
lib.rs

1//! Library half of `bezant-server`.
2//!
3//! The binary in `main.rs` is a thin shell around the reusable pieces here:
4//! [`router`] builds an [`axum::Router`] wired to the CPAPI pass-through
5//! handlers, and [`AppState`] is the shared bag of state every handler
6//! needs. Integration tests build the same router against wiremock
7//! instead of a real gateway.
8
9#![deny(missing_docs)]
10
11mod error;
12pub mod events;
13mod routes;
14mod state;
15
16pub use error::{AppError, ErrorBody};
17pub use events::{spawn_connector, ConnectorCfg, EventsHandle};
18pub use routes::router;
19pub use state::AppState;