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