BREAKING CHANGE: Previously cargo assumed it had to rerun build.rs if any files in the project changed. prost-build will now emit rerun commands, which means only the explicitly marked files cause a rerun. If build.rs is dependent on any other file paths than those given to prost-build, then your build.rs needs to emit rerun commands as well.
Inform
cargo
about the files and env vars used byprost-build
. Thencargo
can better determine when to rebuild a project.rerun-if-changed
for each proto file specifiedrerun-if-changed
for each include directory specifiedrerun-if-changed
iffile_descriptor_set_path
is setrerun-if-env-changed
forPROTOC
andPROTOC_INCLUDE
https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed
BREAKING CHANGE: Previously
cargo
assumed it had to rerunbuild.rs
if any files in the project changed.prost-build
will now emitrerun
commands, which means only the explicitly marked files cause a rerun. Ifbuild.rs
is dependent on any other file paths than those given toprost-build
, then yourbuild.rs
needs to emitrerun
commands as well.