Skip to content

Commit

Permalink
Revert "fix tonic-build cargo build script outputs (#1821)"
Browse files Browse the repository at this point in the history
This reverts commit dfd3bb4.
  • Loading branch information
tottoto authored Aug 28, 2024
1 parent 75e5201 commit b716f65
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion interop/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ fn main() {
tonic_build::compile_protos(proto).unwrap();

// prevent needing to rebuild if files (or deps) haven't changed
println!("cargo::rerun-if-changed={}", proto);
println!("cargo:rerun-if-changed={}", proto);
}
6 changes: 3 additions & 3 deletions tonic-build/src/prost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ impl Builder {
}

/// Enable or disable emitting
/// [`cargo::rerun-if-changed=PATH`](https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed)
/// [`cargo:rerun-if-changed=PATH`](https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed)
/// instructions for Cargo.
///
/// If set, writes instructions to `stdout` for Cargo so that it understands
Expand Down Expand Up @@ -652,14 +652,14 @@ impl Builder {

if self.emit_rerun_if_changed {
for path in protos.iter() {
println!("cargo::rerun-if-changed={}", path.as_ref().display())
println!("cargo:rerun-if-changed={}", path.as_ref().display())
}

for path in includes.iter() {
// Cargo will watch the **entire** directory recursively. If we
// could figure out which files are imported by our protos we
// could specify only those files instead.
println!("cargo::rerun-if-changed={}", path.as_ref().display())
println!("cargo:rerun-if-changed={}", path.as_ref().display())
}
}

Expand Down
2 changes: 1 addition & 1 deletion tonic-web/tests/integration/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fn main() {

protos
.iter()
.for_each(|file| println!("cargo::rerun-if-changed={}", file));
.for_each(|file| println!("cargo:rerun-if-changed={}", file));
}

0 comments on commit b716f65

Please sign in to comment.