indradb-proto 5.0.0

Protobuf/gRPC interfaces for IndraDB
Documentation
use std::error::Error;
use std::process::exit;

fn run() -> Result<(), Box<dyn Error>> {
    tonic_build::configure()
        // .format(false) // disable code formatting since docs.rs will otherwise break
        .compile_protos(&["indradb.proto"], &["."])?;
    Ok(())
}

fn main() {
    if let Err(err) = run() {
        eprintln!("{err}");
        exit(1);
    }

    // Tells cargo to only rebuild if the proto file changed
    println!("cargo:rerun-if-changed=indradb.proto");
}