clawdb 0.1.2

The cognitive database for AI agents — unified memory, semantic retrieval, branching, sync, and governance.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    // Declare the custom cfg to suppress unexpected_cfg warnings.
    println!("cargo:rustc-check-cfg=cfg(proto_compiled)");
    // Attempt proto compilation; print a warning but do not fail if protoc is unavailable.
    let result = tonic_build::configure()
        .build_server(true)
        .build_client(true)
        .compile_protos(&["proto/clawdb.proto"], &["proto"]);
    match result {
        Ok(_) => println!("cargo:rustc-cfg=proto_compiled"),
        Err(e) => println!("cargo:warning=Proto compilation skipped (protoc unavailable): {e}"),
    }
}