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
All checks were successful
CI / check (push) Successful in 5m40s
This commit is contained in:
parent
d5a89baf53
commit
829a3916fd
7 changed files with 198 additions and 9 deletions
4
build.rs
4
build.rs
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue