crabidy/crabidy-core/build.rs

11 lines
470 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
// No `connect()` convenience impl: it hardcodes tonic::transport,
// which the wasm build of this crate deliberately lacks
// (architecture/web-client.md). Clients construct their channel
// (native: Endpoint, browser: tonic-web-wasm-client) themselves.
tonic_prost_build::configure()
.build_transport(false)
.compile_protos(&["crabidy/v1/crabidy.proto"], &["."])?;
Ok(())
}