Add an echorpc control CLI over gRPC: version/status/rehash live, start/stop/restart via systemctl
All checks were successful
CI / check (push) Successful in 5m40s

This commit is contained in:
Jean Chevronnet 2026-07-20 15:28:00 +00:00
parent d5a89baf53
commit 829a3916fd
No known key found for this signature in database
7 changed files with 198 additions and 9 deletions

View file

@ -9,7 +9,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// Django (or any other consumer) generates its own stub from proto/echo.proto.
tonic_build::configure()
.build_server(true)
.build_client(false)
// The `echorpc` control CLI (in this same binary) dials the Admin service,
// so we need the client stubs too. Django generates its own from the proto.
.build_client(true)
.compile_protos(&["proto/echo.proto"], &["proto"])?;
println!("cargo:rerun-if-changed=proto/echo.proto");
emit_build_info();