14 lines
349 B
Rust
14 lines
349 B
Rust
fn main() {
|
|
let mut config = prost_build::Config::new();
|
|
config.extern_path(".google.protobuf.Empty", "()");
|
|
|
|
tonic_build::configure()
|
|
.compile_well_known_types(true)
|
|
.compile_with_config(
|
|
config,
|
|
&["proto/google.proto", "proto/test.proto"],
|
|
&["proto"],
|
|
)
|
|
.unwrap();
|
|
}
|