Page MenuHomePhabricator

[native/rust_library] Removing of testing `hello.c` and increase C++ standard to 17 in `build.rs`
ClosedPublic

Authored by max on Dec 23 2022, 9:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 9:25 AM
Unknown Object (File)
Wed, Nov 13, 5:22 AM
Unknown Object (File)
Sun, Nov 10, 5:59 PM
Unknown Object (File)
Sun, Nov 10, 5:59 PM
Unknown Object (File)
Sun, Nov 10, 5:59 PM
Unknown Object (File)
Sun, Nov 10, 5:59 PM
Unknown Object (File)
Sun, Nov 10, 5:59 PM
Unknown Object (File)
Sun, Nov 10, 5:55 PM
Subscribers

Details

Summary

This diff introduces the following changes to the Cargo build.rs:

Linear task: ENG-2536

Test Plan

Native CI gates are passed.

Diff Detail

Repository
rCOMM Comm
Branch
tb-native-client-remove-hello
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max retitled this revision from [native/rust_library] Removing of testing `hello.c` and increase C++ standart to 17 in `build.rs` to [native/rust_library] Removing of testing `hello.c` and increase C++ standard to 17 in `build.rs`.Dec 23 2022, 9: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, jon.
max published this revision for review.Dec 23 2022, 9:51 AM
max edited the summary of this revision. (Show Details)

We should probably rerun the build if the protos or lib.rs change

println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed=../../shared/protos/identity.proto");
println!("cargo:rerun-if-changed=../../shared/protos/tunnelbroker.proto");
This revision is now accepted and ready to land.Dec 27 2022, 7:03 AM

Adding of rerun-if-changed for proto files and lib.rs.

In D6014#180778, @jon wrote:

We should probably rerun the build if the protos or lib.rs change

println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed=../../shared/protos/identity.proto");
println!("cargo:rerun-if-changed=../../shared/protos/tunnelbroker.proto");

Good catch! Thanks, @jon!