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)
Wed, Jul 3, 6:58 AM
Unknown Object (File)
Sun, Jun 30, 8:00 PM
Unknown Object (File)
Sat, Jun 29, 5:47 PM
Unknown Object (File)
Wed, Jun 26, 4:16 PM
Unknown Object (File)
Wed, Jun 26, 12:09 AM
Unknown Object (File)
Tue, Jun 25, 7:02 AM
Unknown Object (File)
Mon, Jun 24, 5:06 PM
Unknown Object (File)
Tue, Jun 18, 5:21 PM

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

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.