Skip to main content

Module runtime

Module runtime 

Source
Expand description

Live Application Runtime Orchestrator connecting RSX Blueprints, Style Cascade, Layout, and Rendering.

Re-exports§

pub use test_support::MatchMode;
pub use test_support::NodeQuery;
pub use app::*;
pub use dom_hydration::*;
pub use edit::*;
pub use launch::*;
pub use media_host::*;
pub use platforms::*;
pub use spatial::*;
pub use types::*;

Modules§

app
High-level declarative application entry point and builder.
dom_hydration
Live Client-Side DOM Mutation and Dynamic Hydration Engine.
edit
Text input editing commands and command queue management.
launch
Window launching, headless execution, and Linux GTK platform lifecycle hooks.
media_host
Declarative <audio> and <video> DOM media element reconciliation and playback registry.
platforms
Native windowing backends for X11, Wayland, Win32, and macOS Cocoa.
spatial
Spatial acceleration index for hit-testing, point queries, and EntityId resolution.
test_support
Headless test helpers: locate elements by visible text or title/alt, and click them.
types
Runtime data structures for active focus, scrollbars, hit targets, and editing.

Structs§

AppRuntime
Live running application instance holding active state, layout tree, and display list.
FrameProfile
Wall-clock cost of each frame phase since the last [AppRuntime::finish_frame_profile].
FrameProfileHistory
Bounded ring buffer of FrameProfileRecord snapshots.
FrameProfileHook
Receives a completed FrameProfile each time a frame is presented.
FrameProfileRecord
Complete per-frame telemetry snapshot exposed to host apps (e.g. debug HUD) and MCP tools.
PerfPercentileStats
Rolling percentile distribution (in microseconds) over a ring buffer of frames.
PerfProfileSummary
Rolling performance summary across the active frame ring buffer (for host HUDs & CI gates).
ProfilingAllocator
Optional zero-overhead-when-unused counting allocator wrapper that host apps (or --features profiling builds) can install as #[global_allocator] to measure real per-frame heap allocation count and bytes.

Functions§

take_frame_heap_alloc_delta
Drains and returns (alloc_count, alloc_bytes) recorded since the previous frame.
total_heap_alloc_stats
Returns cumulative (total_alloc_count, total_alloc_bytes) tracked when profiling is active.