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
Unknown Object (File)
Sun, Nov 10, 5:55 PM
Unknown Object (File)
Sun, Nov 10, 3:47 PM
Unknown Object (File)
Wed, Nov 6, 7:08 PM
Unknown Object (File)
Wed, Nov 6, 6:19 AM
Unknown Object (File)
Wed, Nov 6, 6:19 AM
Unknown Object (File)
Wed, Nov 6, 6:19 AM
Unknown Object (File)
Wed, Nov 6, 6:19 AM
Unknown Object (File)
Tue, Nov 5, 10: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
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.