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
F3491045: D5807.id20174.diff
Wed, Dec 18, 6:16 PM
F3491044: D5807.id19933.diff
Wed, Dec 18, 6:16 PM
F3491043: D5807.id19755.diff
Wed, Dec 18, 6:16 PM
F3491041: D5807.id19648.diff
Wed, Dec 18, 6:16 PM
F3491038: D5807.id19342.diff
Wed, Dec 18, 6:16 PM
F3491036: D5807.id19542.diff
Wed, Dec 18, 6:16 PM
F3491035: D5807.id19131.diff
Wed, Dec 18, 6:16 PM
F3491034: D5807.id20022.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
Branch
tb-native-client-add-proto
Lint
No Lint Coverage
Unit
No Test Coverage

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.