Page MenuHomePhabricator

[native] set up CXX bridge
ClosedPublic

Authored by varun on Aug 11 2022, 8:43 PM.
Tags
None
Referenced Files
F2209660: D4820.diff
Sun, Jul 7, 6:14 PM
Unknown Object (File)
Sat, Jul 6, 12:35 PM
Unknown Object (File)
Sat, Jul 6, 7:18 AM
Unknown Object (File)
Fri, Jul 5, 5:36 PM
Unknown Object (File)
Wed, Jul 3, 8:02 AM
Unknown Object (File)
Mon, Jul 1, 10:59 AM
Unknown Object (File)
Mon, Jul 1, 4:43 AM
Unknown Object (File)
Wed, Jun 26, 3:58 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.