clawdb-server 0.1.2

gRPC and HTTP server for the ClawDB cognitive database.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let out_dir = std::env::var("OUT_DIR")?;
    let descriptor_path = std::path::Path::new(&out_dir).join("clawdb_descriptor.bin");

    tonic_build::configure()
        .build_server(true)
        .build_client(true)
        .file_descriptor_set_path(&descriptor_path)
        .compile_protos(&["proto/clawdb.proto"], &["proto"])?;

    println!("cargo:rerun-if-changed=proto/clawdb.proto");
    Ok(())
}