tonic-web enables tonic servers to handle requests from grpc-web clients directly, without the need of an external proxy. Co-authored-by: John Hernandez <[email protected]> Co-authored-by: zancas <[email protected]>
12 lines
239 B
Rust
12 lines
239 B
Rust
fn main() {
|
|
let protos = &["proto/test.proto"];
|
|
|
|
tonic_build::configure()
|
|
.compile(protos, &["proto"])
|
|
.unwrap();
|
|
|
|
protos
|
|
.iter()
|
|
.for_each(|file| println!("cargo:rerun-if-changed={}", file));
|
|
}
|