Expand description
Renderer-internal state engine and wire codec.
This crate holds the pieces of the Plushie renderer that widget
authors do not need at compile time: the pure UI tree state
machine (Core), the retained node tree (Tree), and the wire
codec (Codec).
The split keeps plushie-widget-sdk focused on the public widget-
author surface while consolidating the renderer-internal modules
used by plushie-renderer-lib, plushie-renderer, the WASM
entry point, and the Rust SDK direct runner here.
§Dependency direction
plushie-core
|
v
plushie-widget-sdk
|
v
plushie-renderer-engine (this crate)
|
v
plushie-renderer-libModules§
- tree
- Retained UI tree.
Structs§
- Core
- Pure state core, decoupled from the iced runtime.
- Subscription
Entry - A single subscription entry within a kind. Multiple entries per kind allow window-scoped subscriptions alongside global ones.
Enums§
- Codec
- Wire codec for the stdin/stdout protocol.
- Core
Effect - Side effects produced by
Core::applythat the host must handle. - Dispatch
- Platform or widget operations the host must execute on Core’s behalf. Core doesn’t touch iced, stdout, or the filesystem; it produces these typed commands and the host dispatches them.
- Emit
- Outgoing wire payloads produced by Core. Every variant is a fully-formed message the host can encode and write without any further parsing.
- State
Change - Changes to host-owned state that lives outside Core.
Constants§
- MAX_
MESSAGE_ SIZE - Maximum size for a single wire message (64 MiB). Applied to both JSON line reads and msgpack length-prefixed frames.