Skip to main content

Crate mirui

Crate mirui 

Source

Modules§

anim
app
cache
components
draw
ecs
event
feedback
Cursor + rotary input feedback overlays.
layout
perf
Span-based perf tracing. Use crate::trace_span! / #[crate::trace_fn]; this module is the storage layer.
plugin
plugins
prelude
use mirui::prelude::*; brings in the types and macros that nearly every application file needs: App, the layout module, Color / Dimension / Fixed, Entity / World, the widget builder, theme tokens, and the ui! macro. Surface backends, individual widget kinds, and plugins stay on their canonical paths so the prelude doesn’t pin a platform choice.
surface
timer
Declarative timers — Timer component fires a callback at scheduled MonoClock instants. Reset drift mode (no catch-up). Lifecycle variants cover one-shot, periodic, bounded counts, and bounded wall deadlines. See .local/specs/timer/design.md for the full surface.
types
widget
Widget kinds and their shared infrastructure.

Macros§

trace_span
trace_span!("name") — RAII statement: guard lives until end of scope. Multiple calls in one scope each get a unique binding.
ui

Attribute Macros§

system
Attach perf-aware metadata to a fn(&mut World).
trace_fn
#[trace_fn("name")] — equivalent to trace_span!("name"); as the first statement of the fn body.