diff --git a/native/cpp/CommonCpp/grpc/grpc_client/build.rs b/native/cpp/CommonCpp/grpc/grpc_client/build.rs new file mode 100644 index 000000000..bfae0e387 --- /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 index 8b1378917..32a4148ad 100644 --- 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"); +}