7 unstable releases (3 breaking)

0.3.3 Mar 13, 2022
0.3.2 Mar 13, 2022
0.2.0 Feb 24, 2022
0.1.0 Feb 1, 2019
0.0.1 Apr 18, 2018

#767 in Algorithms

34 downloads per month
Used in 5 crates (4 directly)

MIT license

54KB
924 lines

Build Status Crates.io Documentation

redux-rs

A Rust implementation of Redux.

Redux

Redux, originally implemented in JavaScript, is an functional approach to state management. The core concept is that you have a state and a reducer, a function to create a new state from the old one and an action, a description of what to change. Because the state itself is immutable, this results in a very clean way of managing application state, where every possible action is defined beforehand and dispatched later on.

Usage

You might want to read the documentation, which also provides examples.

Also consider checking out the examples.

To run an example:

cargo run --example <name of the example>

Dependencies

~2–11MB
~108K SLoC