expman_server/lib.rs
1//! expman-server: Axum web server with REST API, SSE live streaming, and embedded Leptos frontend.
2
3// ── Frontend module (WASM only) ──────────────────────────────────────────────
4#[cfg(target_arch = "wasm32")]
5pub mod app;
6
7// ── Server module (native only) ─────────────────────────────────────────────
8#[cfg(not(target_arch = "wasm32"))]
9mod api;
10
11// Re-export public items for native builds
12#[cfg(not(target_arch = "wasm32"))]
13pub use api::{build_router, serve};
14
15#[cfg(not(target_arch = "wasm32"))]
16pub use api::state::{AppState, ServerConfig};