raft-client 0.1.2

Client library for the raft distributed KV store with automatic leader tracking and exponential backoff
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() -> Result<(), Box<dyn std::error::Error>> {
    tonic_build::configure()
        .build_server(false)
        .build_client(true)
        .compile_protos(
            &[
                "proto/kv.proto",
                "proto/watch.proto",
                "proto/lease.proto",
                "proto/admin.proto",
            ],
            &["proto"],
        )?;
    Ok(())
}