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)
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
Unknown Object (File)
Wed, Jun 26, 2:30 AM
Unknown Object (File)
Wed, Jun 26, 2:30 AM
Unknown Object (File)
Wed, Jun 26, 2:29 AM
Unknown Object (File)
Wed, Jun 26, 2:26 AM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #15588)

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 ↗(On Diff #15588)

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 ↗(On Diff #15588)

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 ↗(On Diff #15588)

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

native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs
51 ↗(On Diff #15588)

I'd prefer to keep it as is

This revision was automatically updated to reflect the committed changes.