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
F2173053: D5807.id19130.diff
Tue, Jul 2, 9:24 PM
F2173047: D5807.id20022.diff
Tue, Jul 2, 9:23 PM
F2172950: D5807.id19933.diff
Tue, Jul 2, 9:03 PM
F2172825: D5807.id19648.diff
Tue, Jul 2, 8:48 PM
F2172757: D5807.id19342.diff
Tue, Jul 2, 8:35 PM
F2172711: D5807.id19542.diff
Tue, Jul 2, 8:29 PM
F2172690: D5807.id19131.diff
Tue, Jul 2, 8:26 PM
F2172506: D5807.id20174.diff
Tue, Jul 2, 8:00 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
add-proto-to-native-client
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

@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

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

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.