16 lines
509 B
Rust
16 lines
509 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",
|
|
"../proto/st-peter-admin.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}");
|
|
}
|
|
}
|