13 lines
453 B
Rust
13 lines
453 B
Rust
// Compile the vendored proto (../proto, synced from the st-peter server repo)
|
|
// into client stubs. Client-only: no server traits are generated.
|
|
fn main() {
|
|
let protos = ["../proto/st-peter-auth.proto"];
|
|
tonic_prost_build::configure()
|
|
.build_server(false)
|
|
.compile_protos(&protos, &["../proto"])
|
|
.expect("failed to compile st-peter protos");
|
|
for p in protos {
|
|
println!("cargo:rerun-if-changed={p}");
|
|
}
|
|
}
|