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
F3491133: D6014.id20226.diff
Wed, Dec 18, 6:17 PM
F3491132: D6014.id20224.diff
Wed, Dec 18, 6:17 PM
F3491131: D6014.id20221.diff
Wed, Dec 18, 6:17 PM
F3491130: D6014.id20070.diff
Wed, Dec 18, 6:17 PM
F3488685: D6014.id.diff
Wed, Dec 18, 10:59 AM
Unknown Object (File)
Sun, Nov 24, 2:41 PM
Unknown Object (File)
Nov 16 2024, 12:13 PM
Unknown Object (File)
Nov 16 2024, 12:05 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
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!