Skip to content

Commit 92d759d

Browse files
authored
Only rerun the build script if proto/events.proto changes (vectordotdev#469)
By default, the build script is run if any source changes. This change scopes it to just the one source file that it uses, which speeds up some incremental changes (to benchmarks, for example).
1 parent 2f37b8a commit 92d759d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
fn main() {
2+
println!("cargo:rerun-if-changed=proto/event.proto");
23
prost_build::compile_protos(&["proto/event.proto"], &["proto/"]).unwrap();
34
built::write_built_file().unwrap();
45
}

0 commit comments

Comments
 (0)