Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/edda

crates/nornir-identity/build.rs

fn main() {
    println!("cargo:rerun-if-changed=proto/nornir/identity/v1/identity.proto");
    println!("cargo:rerun-if-changed=build.rs");
    if std::env::var("CARGO_FEATURE_GRPC").is_err() {
        return; // no gRPC: no codegen
    }
    let fds = protox::compile(["nornir/identity/v1/identity.proto"], ["proto"]).expect("protox: identity.proto");
    tonic_prost_build::configure()
        .build_server(true)
        .build_client(true)
        .compile_fds(fds)
        .expect("tonic-prost-build: identity codegen");
}