diff --git a/native/cpp/CommonCpp/grpc/grpc_client/build.rs b/native/cpp/CommonCpp/grpc/grpc_client/build.rs new file mode 100644 --- /dev/null +++ b/native/cpp/CommonCpp/grpc/grpc_client/build.rs @@ -0,0 +1,4 @@ +fn main() { + tonic_build::compile_protos("../protos/identity.proto") + .unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e)); +} diff --git a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs --- a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs +++ b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs @@ -1 +1,3 @@ - +pub mod identity { + tonic::include_proto!("identity"); +}