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
F3517355: D5486.id17920.diff
Sun, Dec 22, 5:10 PM
Unknown Object (File)
Tue, Nov 26, 5:32 AM
Unknown Object (File)
Tue, Nov 26, 5:31 AM
Unknown Object (File)
Mon, Nov 25, 9:19 PM
Unknown Object (File)
Nov 22 2024, 11:58 AM
Unknown Object (File)
Nov 22 2024, 11:49 AM
Unknown Object (File)
Oct 25 2024, 10:24 PM
Unknown Object (File)
Oct 25 2024, 10:24 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
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.