Page MenuHomePhabricator

[native/rust_library] Add Tunnelbroker protobuf file compilation to the native client
ClosedPublic

Authored by max on Dec 5 2022, 2:31 AM.
Tags
None
Referenced Files
F3494969: D5807.id19131.diff
Thu, Dec 19, 7:23 AM
F3494968: D5807.id19542.diff
Thu, Dec 19, 7:22 AM
F3494890: D5807.id19755.diff
Thu, Dec 19, 7:04 AM
F3494888: D5807.id19933.diff
Thu, Dec 19, 7:04 AM
F3494831: D5807.id19648.diff
Thu, Dec 19, 6:50 AM
F3494784: D5807.id20174.diff
Thu, Dec 19, 6:47 AM
F3493705: D5807.id19130.diff
Thu, Dec 19, 3:56 AM
F3491045: D5807.id20174.diff
Wed, Dec 18, 6:16 PM
Subscribers

Details

Summary

This diff introduces adding the Tunnelbroker's protobuf file compilation for the native client. The compilation step was added to the build step of the native/native_rust_library Rust library linked to the native by the CXX bridge.

Linear task: ENG-1333

Test Plan

Rust native library is successfully built.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

max held this revision as a draft.
max published this revision for review.Dec 5 2022, 2:35 AM
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added reviewers: varun, atul, jon.
max added inline comments.
native/native_rust_library/build.rs
14 ↗(On Diff #19130)

@varun Do we have an src/hello.c in the native Rust lib or this is something from the test code?

Is the CI failing because of the Protobuf version issue?

Yes, it's related to the ENG-2404

Rebasing on the stack changes.

Rebasing on master changes.

Rebasing on the master changes.

Rebasing on master changes.

max retitled this revision from [native] Add Tunnelbroker protobuf file compilation to the native client to [native/rust_library] Add Tunnelbroker protobuf file compilation to the native client.Dec 22 2022, 8:20 AM
native/native_rust_library/build.rs
14 ↗(On Diff #19130)

ah, this was from my local testing... you can remove it, i don't think we need a rerun-if-changed condition

varun added inline comments.
native/native_rust_library/build.rs
3 ↗(On Diff #20022)

good call

9 ↗(On Diff #20022)

why do we need to include this folder?

This revision is now accepted and ready to land.Dec 22 2022, 10:39 PM
max added inline comments.
native/native_rust_library/build.rs
9 ↗(On Diff #20022)

why do we need to include this folder?

This is how the compile(...) works. We should provide a directory where the protos reside.

14 ↗(On Diff #19130)

ah, this was from my local testing... you can remove it, i don't think we need a rerun-if-changed condition

Got it, I've removed it in the D6014.