Page MenuHomePhabricator

[native] set up CXX bridge
ClosedPublic

Authored by varun on Aug 11 2022, 8:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 3, 9:52 PM
Unknown Object (File)
Wed, Mar 26, 9:40 PM
Unknown Object (File)
Sat, Mar 22, 1:20 PM
Unknown Object (File)
Sun, Mar 16, 7:15 AM
Unknown Object (File)
Sat, Mar 15, 7:41 PM
Unknown Object (File)
Sat, Mar 15, 7:41 PM
Unknown Object (File)
Sat, Mar 15, 7:41 PM
Unknown Object (File)
Sat, Mar 15, 7:41 PM

Details

Summary

create the ffi module that will be used to generate the bridge between C++ and Rust code

Depends on D4815

Test Plan

cargo build

Diff Detail

Repository
rCOMM Comm
Branch
identity-client (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Aug 11 2022, 8:53 PM
tomek added inline comments.
native/cpp/CommonCpp/grpc/grpc_client/build.rs
5

What os the purpose of this print?

This revision is now accepted and ready to land.Aug 12 2022, 3:56 AM
karol added inline comments.
native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs
51

What does ffi stand for? Can we change this name? It's not very descriptive.

jon added inline comments.
native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs
51

ffi is a pretty common across many languages, generally the assumption is that they "act like C", and that ABI can be used across many boundries.

native/cpp/CommonCpp/grpc/grpc_client/build.rs
5

It tells Cargo that if the given file changes, to rerun this build script

native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs
51

I'd prefer to keep it as is

This revision was automatically updated to reflect the committed changes.