* Better example code for google protos * Try fix windows build * Try fix windows build * Remove generated code in repo
18 lines
548 B
Rust
18 lines
548 B
Rust
fn main() {
|
|
tonic_build::configure()
|
|
.type_attribute("routeguide.Point", "#[derive(Hash)]")
|
|
.compile(&["proto/routeguide/route_guide.proto"], &["proto"])
|
|
.unwrap();
|
|
|
|
tonic_build::compile_protos("proto/helloworld/helloworld.proto").unwrap();
|
|
tonic_build::compile_protos("proto/echo/echo.proto").unwrap();
|
|
|
|
tonic_build::configure()
|
|
.build_server(false)
|
|
.compile(
|
|
&["proto/googleapis/google/pubsub/v1/pubsub.proto"],
|
|
&["proto/googleapis"],
|
|
)
|
|
.unwrap();
|
|
}
|