yocto_client 0.1.0

Rust client for yocto
Documentation

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