diff --git a/native/native_rust_library/build.rs b/native/native_rust_library/build.rs --- a/native/native_rust_library/build.rs +++ b/native/native_rust_library/build.rs @@ -1,6 +1,8 @@ fn main() { tonic_build::compile_protos("../../shared/protos/identity.proto") - .unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e)); + .unwrap_or_else(|e| panic!("Failed to compile identity protos {:?}", e)); + tonic_build::compile_protos("../../shared/protos/blob.proto") + .unwrap_or_else(|e| panic!("Failed to compile blob protos {:?}", e)); let _cxx_build = cxx_build::bridge("src/lib.rs").flag_if_supported("-std=c++14"); println!("cargo:rerun-if-changed=src/hello.c"); diff --git a/native/native_rust_library/src/blob_client.rs b/native/native_rust_library/src/blob_client.rs --- a/native/native_rust_library/src/blob_client.rs +++ b/native/native_rust_library/src/blob_client.rs @@ -0,0 +1,3 @@ +pub mod blob { + tonic::include_proto!("blob"); +}