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

nordisk/skade

grpc/build.rs

// Compile the catalog proto to Rust. `protox` is a **pure-Rust** protobuf
// compiler, so the build needs no system `protoc` binary (L9 pure-rust,
// zero-shell): it produces a `FileDescriptorSet` in-process that
// tonic-prost-build (tonic-build's prost half since tonic 0.14) turns into the
// client + server stubs.
fn main() {
    let fds = protox::compile(["proto/skade_katalog.proto"], ["proto"])
        .expect("protox: compile skade_katalog.proto");
    tonic_prost_build::configure()
        .build_client(true)
        .build_server(true)
        .compile_fds(fds)
        .expect("tonic-prost-build: generate stubs from descriptor set");
    println!("cargo:rerun-if-changed=proto/skade_katalog.proto");
}