fix(build): Correctly convert Empty to () (#734)
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
fn main() {
|
||||
let mut config = prost_build::Config::new();
|
||||
config.extern_path(".google.protobuf.Empty", "()");
|
||||
|
||||
tonic_build::configure()
|
||||
.compile_well_known_types(true)
|
||||
.compile(&["proto/google.proto"], &["proto"])
|
||||
.compile_with_config(
|
||||
config,
|
||||
&["proto/google.proto", "proto/test.proto"],
|
||||
&["proto"],
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user