soma_runtime/lib.rs
1//! Shared runtime state, authentication policy, and protected-route wiring.
2
3// Render per-item feature-requirement badges when rustdoc runs on nightly with
4// `--cfg docsrs` (docs.rs posture; locally via `cargo xtask doc --docsrs-cfg`).
5// Inert under the stable CI doc gate: stable rustdoc never sets `docsrs`.
6#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7pub mod server;
8
9#[cfg(feature = "protected-routes")]
10pub mod protected_routes;
11#[cfg(feature = "protected-routes")]
12mod protected_routes_proxy;
13#[cfg(all(test, feature = "protected-routes"))]
14mod test_support;
15
16pub use server::{
17 AppState, AuthPolicy, AuthPolicyKind, ResponsePageStore, SomaRuntime, resolve_auth_policy_kind,
18};