sorock 0.12.0

A Multi-Raft implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

fn main() {
    let out_dir = std::env::var("OUT_DIR").unwrap();
    let out_dir = PathBuf::from(out_dir);

    tonic_prost_build::configure()
        .bytes(".sorock.WriteRequest.message")
        .bytes(".sorock.ReadRequest.message")
        .bytes(".sorock.Response.message")
        .bytes(".sorock.KernelRequest.message")
        .bytes(".sorock.ReplicationStreamEntry.command")
        .bytes(".sorock.SnapshotChunk.data")
        .file_descriptor_set_path(out_dir.join("sorock_descriptor.bin"))
        .compile_protos(&["sorock.proto"], &["proto"])
        .unwrap();
}