holger-server-lib 0.6.7

Holger server library: config, wiring, gRPC service, Rust API
//! Build script for `holger-server-lib`.
//!
//! It NO LONGER compiles protos. Proto codegen used to live here
//! (`tonic_build::compile_protos("proto/holger.proto")`), which shells out to
//! the `protoc` binary on every `cargo build` — failing on checkouts without
//! `protoc` (e.g. the `nornir` server user) and taking down this crate plus
//! everything path-dep'd on it.
//!
//! Per Rickard's directive ("use an xtask, avoid shelling"), codegen now happens
//! ahead of time in `cargo xtask gen-proto` (protox + tonic-build, pure Rust, no
//! `protoc`), and the result is committed at `src/generated/holger.v1.rs` and
//! `include!`d by `src/grpc.rs`. A normal `cargo build` therefore needs neither
//! `protoc` nor a subprocess.
//!
//! All that's left is a cheap rerun hint so editing the `.proto` is at least
//! visible (the actual regenerate is the xtask).

fn main() {
    // Cheap, no subprocess: just tell cargo to re-run this (no-op) script when
    // the proto source changes. Regenerating the committed Rust is a manual
    // `cargo xtask gen-proto` step, deliberately NOT done at build time.
    println!("cargo:rerun-if-changed=proto/holger.proto");
}