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,6 @@ +fn main() { + tonic_build::compile_protos("../../protos/blob.proto") + .unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e)); + let _cxx_build = + cxx_build::bridge("src/lib.rs").flag_if_supported("-std=c++14"); +} 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"); +} \ No newline at end of file