You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skip writing output files when content is already identical, preserving
mtime so Cargo doesn't spuriously recompile downstream crates.
Cargo's rebuild decision for include!-ed files is mtime-based (rustc
dep-info lists the file, Cargo compares mtime vs fingerprint). Before
this change, touching any single .proto file re-ran the build script
and unconditionally rewrote every output .rs, bumping all their mtimes
and cascading into a full recompile even when N-1 of N files were
byte-identical.
Mirrors anthropics/buffa#17 and prost-build's write_file_if_changed.
0 commit comments