zisk-coordinator-api 1.1.0-alpha

ZisK Coordinator gRPC types (generated from proto)
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR")?);

    tonic_prost_build::configure()
        .build_server(true)
        .build_client(true)
        .out_dir(&out_dir)
        .compile_well_known_types(false)
        .disable_comments(["."])
        .extern_path(".google.protobuf.Timestamp", "::prost_types::Timestamp")
        .extern_path(".google.protobuf.Duration", "::prost_types::Duration")
        .protoc_arg("--experimental_allow_proto3_optional")
        .compile_protos(
            &["proto/zisk_coordinator_api.proto", "proto/zisk_coordinator_api_ext.proto"],
            &["proto/"],
        )?;

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