tui-dispatch-0.3.2 has been yanked.
tui-dispatch: Centralized state management for Rust TUI apps
Like Redux/Elm, but for terminals. Components are pure functions of state, and all state mutations happen through dispatched actions.
Example
use tui_dispatch::prelude::*;
#[derive(Action, Clone, Debug)]
enum MyAction {
NextItem,
PrevItem,
}
#[derive(ComponentId, Clone, Copy, PartialEq, Eq, Hash, Debug)]
enum MyComponentId {
List,
Detail,
}