reactive-state

Crates.ioreactive-state
lib.rsreactive-state
version0.3.0
sourcesrc
created_at2020-07-28 19:59:54.823349
updated_at2021-05-19 05:12:10.307569
descriptionA library for managing global application state (similar to redux).
homepage
repositoryhttps://github.com/kellpossible/reactive-state
max_upload_size
id270612
size74,397
Luke Frisken (kellpossible)

documentation

README

reactive-state crates.io badge docs.rs badge license badge github action badge

This library is inspired by redux, and designed to be used within Rust GUI applications to manage centralised global state which behaves in a predictable way.

Usage

Optional Features

The following optional crate features can be enabled:

  • "simple_logger" - Logging middleware in the simple_logger module which uses the log macros.
  • "web_logger" - Logging middleware in the web_logger module, for applications running in the browser using wasm-bindgen.
  • "yew" - Support for compatibility trait implementations on yew types.

Middleware

The behaviour of the system is customisable via middleware, and provided in this library are a couple of examples, a simple logger, and a web based logger inspired by redux-logger.

web_logger The web_logger Middleware

Available Middleware

Aside from the built in middleware web_logger and simple_logger (available via crate features), here is a list of available middleware crates:

Commit count: 27

cargo fmt