fn main() -> Result<(), Box<dyn std::error::Error>> {
    let protoc = protoc_bin_vendored::protoc_bin_path()?;
    unsafe {
        std::env::set_var("PROTOC", protoc);
    }
    println!("cargo::rerun-if-changed=proto/app.proto");
    tonic_prost_build::configure().compile_protos(&["proto/app.proto"], &["proto"])?;
    Ok(())
}
