Skip to main content

uzor_framework/host/
mod.rs

1//! ROLE host/* (shell): the loops that drive the runtime (design §9).
2//! Hosts own the OS event loop, the paint surface and the clock; they see
3//! the [`Runtime`](crate::Runtime) only (ban F10). The headless host is
4//! the deterministic test host: it compiles without features, runs every
5//! §9.2 script, and paints into a recording context.
6//!
7//! The native (winit) host lives behind feature `native` ([`native`]); the
8//! web host lives behind feature `web` ([`web`]).
9
10mod headless;
11
12pub use headless::HeadlessHost;
13
14#[cfg(feature = "native")]
15pub mod native;
16
17#[cfg(feature = "native")]
18pub use native::{
19    run_native, run_native_default, NativeOptions, RenderPreference, TraySpec, WinitMapper,
20};
21
22#[cfg(feature = "web")]
23pub mod web;
24
25#[cfg(feature = "web")]
26pub use web::{run_web, start_web};
27
28#[cfg(test)]
29mod tests;