Skip to main content

sim_web_shell/
lib.rs

1//! `sim-web-shell`: the binary that serves the SIM WebUI shell.
2//!
3//! The crate embeds its `web/` browser assets and serves cookbook APIs through
4//! the shared server/cookbook libraries. The browser shell is a thin Scene
5//! painter and Intent emitter with an Atelier cache view over the generated
6//! Site graph, constellation index, Retrieval Radar, and Guideline Firewall
7//! reports. The shell ships no second data model and no second semantics.
8
9#![forbid(unsafe_code)]
10#![deny(missing_docs)]
11
12mod assets;
13mod atelier;
14mod cli;
15mod live;
16mod serve;
17
18pub use assets::{Asset, asset_for};
19pub use atelier::{AtelierWebResponse, AtelierWebState};
20pub use cli::{
21    AtelierCliLib, BrowseCliLib, WebServeLib, configure_web_bootloader, web_bootloader,
22    web_serve_entrypoint_symbol,
23};
24pub use live::{
25    DEFAULT_PANE, DEFAULT_RESOURCE, LiveSession, decode_intent_body, encode_patches, encode_scene,
26    error_json,
27};
28pub use serve::{ServeConfig, serve_with_cx};
29
30#[cfg(test)]
31mod tests;