Rebrand the daemon and workspace: the binary is now `echo`, every crate is `echo-*` (`echo-api` and the module crates), Rust imports use `echo_*`, the gRPC proto is `proto/echo.proto` with package `echo.v1`, and the log filter, gossip peer-name default, and on-disk store default (`echo.db.jsonl`) follow. Docs updated throughout. No behaviour change; crate directories and the config schema are untouched.
10 lines
434 B
Rust
10 lines
434 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
// Server only: the Rust side never needs to dial itself as a gRPC client.
|
|
// Django (or any other consumer) generates its own stub from proto/echo.proto.
|
|
tonic_build::configure()
|
|
.build_server(true)
|
|
.build_client(false)
|
|
.compile_protos(&["proto/echo.proto"], &["proto"])?;
|
|
println!("cargo:rerun-if-changed=proto/echo.proto");
|
|
Ok(())
|
|
}
|