Skip to content
Open
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
7 changes: 6 additions & 1 deletion connectrpc-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,12 @@ impl Config {
DescriptorSource::Precompiled(p) => {
println!("cargo:rerun-if-changed={}", p.display());
}
DescriptorSource::Protoc | DescriptorSource::Buf => {
// Both Buf and Precompiled modes use proto-relative names (not
// filesystem paths) in `.files()`. Emitting `rerun-if-changed`
// for those would point cargo at non-existent files and force a
// rebuild every invocation.
DescriptorSource::Buf => {}
DescriptorSource::Protoc => {
for f in &self.files {
println!("cargo:rerun-if-changed={}", f.display());
}
Expand Down