1 unstable release
Uses new Rust 2024
new 0.1.0 | Apr 29, 2025 |
---|
#205 in #component
104 downloads per month
8KB
145 lines
Rustey
The Elm Architecture for Rust.
An implementation of the Elm Architecture for Rust.
Components
The Elm Architecture consists of a small number of components that play nicely
together. The core element is the model. When the application starts the init
function is called to retrieve the initial model. After initialization the
view
function is called to render the user interface. Once rendering is done
the application will wait for events. Events are emitted by the functions the
application is subscribed to. The subscriptions
function will emit a number
of such functions based on the state of the model. Each function will run in a
thread of it's own and emit events as relevant.
The model is updated by the update
function as it reacts to messages.
Dependencies
~7–16MB
~231K SLoC