configure grpc
This commit is contained in:
@@ -4,15 +4,14 @@ use std::fs::File;
|
||||
use std::io::Write;
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// tonic_build::configure()
|
||||
// .build_server(false)
|
||||
// .build_client(true)
|
||||
// .compile_protos(
|
||||
// &[
|
||||
// "",
|
||||
// ],
|
||||
// &[""],
|
||||
// )?;
|
||||
tonic_prost_build::configure()
|
||||
.build_server(false)
|
||||
.build_client(true)
|
||||
.build_transport(false)
|
||||
.compile_protos(
|
||||
&["../AZKiServer/Protos/azki.proto", "../AZKiServer/Protos/types.proto"],
|
||||
&["../AZKiServer"],
|
||||
)?;
|
||||
forward_env();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user