fix(build): Correctly convert Empty to () (#734)

This commit is contained in:
Tom Dyas
2021-10-22 08:44:27 -04:00
committed by GitHub
parent 4947b076f5
commit ff6a690cec
5 changed files with 53 additions and 31 deletions
+8 -1
View File
@@ -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();
}