kotoba-db-cluster 0.1.21

Distributed clustering and consensus for KotobaDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Compile protobuf files if they exist
    let proto_file = "src/cluster.proto";
    if std::path::Path::new(proto_file).exists() {
        println!("cargo:rerun-if-changed={}", proto_file);
        tonic_build::configure()
            .build_server(true)
            .build_client(true)
            .compile(&[proto_file], &["src"])?;
    } else {
        println!("cargo:warning=cluster.proto not found, skipping protobuf generation");
    }

    Ok(())
}