#client #yocto #store

yocto_client

Rust client for yocto

3 unstable releases

0.1.0 Apr 9, 2019
0.0.2 Apr 9, 2019
0.0.1 Apr 6, 2019

#251 in #store

MIT license

7KB
117 lines

yocto-rust

Build Status Crates.io

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.");
}

No runtime deps