datacake-cluster 0.1.0

Eventually consistent state replication as a library (consensus, RPC and conflict resolution) for building your own eventually consistent databases.
1
2
3
4
5
6
7
8
9
10
11
12
fn main() -> Result<(), Box<dyn std::error::Error>> {
    println!("cargo:rerun-if-changed=proto/*.proto");

    let mut config = prost_build::Config::new();
    config.bytes([".datacake_api.Document.data"]);

    tonic_build::configure()
        .out_dir("src/rpc")
        .compile_with_config(config, &["proto/datacake.proto"], &["proto"])?;

    Ok(())
}