State
A library for safe and effortless global and thread-local state management.
extern crate state;
set;
assert_eq!;
See the documentation for more.
Usage
Include state
in your Cargo.toml
[dependencies]
:
[]
= "0.1"
Thread-local state management is not enabled by default. You can enable it via the "tls" feature:
[]
= { = "0.1", = ["tls"] }
License
State is licensed under either of the following, at your option:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)