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)
Thu, Sep 26, 10:53 PM
Unknown Object (File)
Thu, Sep 26, 10:58 AM
Unknown Object (File)
Thu, Sep 5, 6:06 AM
Unknown Object (File)
Sun, Sep 1, 9:11 AM
Unknown Object (File)
Sun, Sep 1, 9:11 AM
Unknown Object (File)
Sun, Sep 1, 9:11 AM
Unknown Object (File)
Sun, Sep 1, 9:11 AM
Unknown Object (File)
Sun, Sep 1, 9:11 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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!