Skip to main content

Crate plushie_renderer_engine

Crate plushie_renderer_engine 

Source
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-lib

Modules§

tree
Retained UI tree.

Structs§

Core
Pure state core, decoupled from the iced runtime.
SubscriptionEntry
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.
CoreEffect
Side effects produced by Core::apply that 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.
StateChange
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.