lol-core 0.7.0

A Raft implementation in Rust language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() -> Result<(), Box<dyn std::error::Error>> {
    // let OUT_DIR = "proto_generated";
    // std::fs::create_dir(OUT_DIR);
    // tonic_build::configure()
    //     .format(true)
    //     .out_dir(OUT_DIR)
    //     .compile(&["proto/lol-core.proto"], &["proto"])?;

    let mut config = prost_build::Config::new();
    config.bytes(&[".lol_core.AppendStreamEntry.command"]);
    tonic_build::configure().compile_with_config(config, &["proto/lol-core.proto"], &["proto"])?;

    Ok(())
}