agent/protocols: Remove cargo:rerun-if-changed in build.rs

So that the build.rs will be re-runed if any file
within the package is changed.

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang 2021-02-24 20:55:17 +08:00
parent 2c42be0ca6
commit 947913f6e5

View File

@ -15,11 +15,6 @@ fn main() {
"protos/oci.proto",
];
// Tell Cargo that if the .proto files changed, to rerun this build script.
protos
.iter()
.for_each(|p| println!("cargo:rerun-if-changed={}", p));
Codegen::new()
.out_dir("src")
.inputs(&protos)