Page MenuHomePhabricator

[services] Tunnelbroker - Move ffi from `main.rs` to the `cxx_bridge.rs` file
ClosedPublic

Authored by max on Oct 26 2022, 9:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 25, 10:24 PM
Unknown Object (File)
Fri, Oct 25, 10:24 PM
Unknown Object (File)
Fri, Oct 25, 10:24 PM
Unknown Object (File)
Fri, Oct 25, 10:23 PM
Unknown Object (File)
Fri, Oct 25, 10:20 PM
Unknown Object (File)
Oct 6 2024, 4:41 AM
Unknown Object (File)
Oct 6 2024, 4:05 AM
Unknown Object (File)
Oct 6 2024, 4:02 AM

Details

Summary

This diff moves the FFI functions from CXX from main.rs to the cxx_bridge.rs file.
The reason for moving the FFI away from the main.rs to its own scope is that the ffi::* functions should be called from the gRPC server handlers (for example in D5487).

Linear task: ENG-2094

Test Plan

The service was successfully built with the CI process or can be built manually using the cargo build command in services/tunnelbroker directory.

Diff Detail

Repository
rCOMM Comm
Branch
move-ffi-to-cxx-bridge
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added reviewers: varun, marcin.
This revision is now accepted and ready to land.Oct 26 2022, 1:45 PM
This revision now requires review to proceed.Oct 27 2022, 2:26 AM

Ideally, we should update an existing diff instead of introducing a new one, but for now let's keep it.

This revision is now accepted and ready to land.Oct 27 2022, 5:23 AM

Rebasing on the master changes.