Skip to main content

write_if_changed

Function write_if_changed 

Source
pub fn write_if_changed(path: &Path, text: &str) -> Result<bool>
Expand description

Write text to path only if the content differs. Returns true when written. Used by the derive macros to emit .d.tl files without churning cargo’s fingerprints.