Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -547,7 +547,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 @@ -648,14 +648,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));
}