//! Tidepool HTTP + WebSocket JSON-RPC server. Wraps the service
//! layer's async functions behind an axum front-end.
//!
//! Public surface:
//!
//! - [`run`] starts the server and blocks until shutdown.
//! - [`ServerConfig`] holds port, upstream URL, and optional indexed
//! trees.
//! - [`HttpUpstream`] is the production [`UpstreamClient`] impl;
//! consumers building their own servers can import it directly.
pub use ServerConfig;
pub use run;
pub use HttpUpstream;
pub use run_ws;
// Re-export of the service layer's upstream trait so consumers don't
// have to reach into the service crate just to write their own impl.
pub use UpstreamClient;