rockraft 0.1.4

A strong consistency KV service library base on Raft and Rocksdb
Documentation
1
2
3
4
5
6
7
8
9
10
11
fn main() -> Result<(), Box<dyn std::error::Error>> {
  println!("cargo:rerun-if-changed=src/*");
  let mut config = prost_build::Config::new();
  config.protoc_arg("--experimental_allow_proto3_optional");
  let proto_files = ["src/raft/proto/raft.proto"];

  tonic_prost_build::configure()
    .btree_map(".")
    .compile_with_config(config, &proto_files, &["proto"])?;
  Ok(())
}