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, Dec 26, 4:47 AM
Unknown Object (File)
Sun, Dec 15, 7:37 PM
Unknown Object (File)
Sun, Dec 15, 7:37 PM
Unknown Object (File)
Sun, Dec 15, 3:45 PM
Unknown Object (File)
Thu, Dec 12, 3:01 PM
Unknown Object (File)
Nov 11 2024, 12:26 AM
Unknown Object (File)
Nov 3 2024, 2:34 PM
Unknown Object (File)
Oct 19 2024, 1:23 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.