gstore 0.2.0

Global state management and easy-to-use widget macros for GTK applications written in Rust
docs.rs failed to build gstore-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: gstore-0.7.0

gstore

Pipeline status API

Global state management for GTK apps in redux style.

A State can be any kind of data structure an application is based on. For a 'counter' app it might be a struct with a single u32 field. Actions are enums which represent the possible features of the app affecting the state.

Documentation

Please check out the rust doc: https://docs.rs/gstore/latest/gstore.

Implementation

gstore works in the ui thread. Asynchronous tasks can be handeled in middlewares. To listen to background threads gstore uses std::sync::mpsc::{Receiver, Sender} and polls every n (100) milliseconds for changes. Thus the UI thread is never blocked.

License

gstore is distributed under the terms of the MIT license. See LICENSE for details.

Acknowledgements

Dan Abramov eveyone who invented/contributes to Redux: https://redux.js.org/.

Thanks for inventing redux.