Skip to main content

siumai_server/
lib.rs

1//! Bounded server projections over Siumai's provider-neutral runtime.
2//!
3//! This crate owns the downstream trust boundary, finite ingress limits, safe
4//! HTTP responses, and canonical stream projection. It does not own a second
5//! tool loop or provider-native protocol codec.
6
7#![deny(unsafe_code)]
8
9#[cfg(feature = "axum")]
10pub mod axum;
11
12mod event;
13mod gateway;
14mod policy;
15mod trust;
16
17pub use event::{GatewayEvent, GatewayLoss, GatewayProjectionError};
18pub use gateway::{ServerGateway, ServerGatewayError, TrustedApprovalDecider};
19pub use policy::{
20    DEFAULT_JSON_RESPONSE_LIMIT_BYTES, DEFAULT_REQUEST_BODY_LIMIT_BYTES,
21    DEFAULT_SSE_EVENT_LIMIT_BYTES, DEFAULT_UPSTREAM_BODY_LIMIT_BYTES, GatewayErrorDetail,
22    GatewayHeaderPolicy, GatewayLimits, GatewayLossPolicy, GatewayPolicy, GatewayPolicyError,
23    GatewayStreamPolicy, MAX_RESPONSE_HEADER_RULES, MAX_SERVER_BODY_LIMIT_BYTES,
24    MIN_SERVER_RESPONSE_LIMIT_BYTES,
25};
26pub use trust::ServerTrustContext;