3 unstable releases
0.1.0 | Apr 9, 2019 |
---|---|
0.0.2 | Apr 9, 2019 |
0.0.1 | Apr 6, 2019 |
#251 in #store
7KB
117 lines
yocto-rust
Yocto client for rust.
Usage
Include yocto_client in your projects Cargo.toml
with the version specified at crates.io. Then, use it as follows:
use yocto_client::Store;
let store = Store::new("127.0.0.1:7001").unwrap();
store.insert("key", "value").unwrap();
if let Some(value) = store.get("key").unwrap() {
assert_eq!(value, "value");
} else {
panic!("Key not found.");
}