Page MenuHomePhabricator

Expose module with generated tonic blob client code
AbandonedPublic

Authored by marcin on Sep 5 2022, 7:40 AM.
Tags
None
Referenced Files
F3387090: D5052.id16817.diff
Fri, Nov 29, 7:36 AM
F3386981: D5052.id16408.diff
Fri, Nov 29, 7:05 AM
F3386846: D5052.id16329.diff
Fri, Nov 29, 6:29 AM
Unknown Object (File)
Mon, Nov 25, 4:27 PM
Unknown Object (File)
Sat, Nov 9, 4:40 PM
Unknown Object (File)
Sat, Nov 9, 7:40 AM
Unknown Object (File)
Wed, Nov 6, 5:09 AM
Unknown Object (File)
Tue, Nov 5, 11:26 AM

Details

Summary

This differential generates Rust bindings for blob API.

Test Plan

run cargo build from project root

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

marcin requested review of this revision.Sep 5 2022, 7:50 AM
tomek added a reviewer: karol.
tomek added inline comments.
native/cpp/CommonCpp/grpc/blob_client/rust/build.rs
5

What is the reason behind using C++14?

native/cpp/CommonCpp/grpc/blob_client/rust/src/lib.rs
4

Please add a new line

native/cpp/CommonCpp/grpc/blob_client/rust/build.rs
5

Once I rebase the stack this line should disappear, but I will reply here. I was unable to compile C++ code calling rust functions implemented further in this stack, when I was using c++11, so I bumped it to c++14 and it worked. I didn't investigate it further since we already use C++14 on native (see CMakeLists.txt in android for instance). But if it it needed I can check why we need c++14 here.

native/cpp/CommonCpp/grpc/blob_client/rust/src/lib.rs
4

Sure.

native/cpp/CommonCpp/grpc/blob_client/rust/build.rs
5

There are some places where we're using C++17, and some other where migrating to 17 was an issue. Probably native was one of them and we should keep 14 for now.

jon added inline comments.
native/cpp/CommonCpp/grpc/blob_client/rust/build.rs
5

The generated code should be C++11 + extensions. So C++14 and beyond should work fine. C++14 vs C++17 shouldn't be much of an issue, as all the compilers we use should support at least C++17.

This revision is now accepted and ready to land.Sep 8 2022, 4:30 AM

Refactor after varun's changes

Diff from 2022 what I was assigned encrypted blob upload work.