#pavex #data #disk #changed #file #systems #persisting

persist_if_changed

A library for persisting data to disk only if it has changed

65 releases

new 0.1.73 Feb 11, 2025
0.1.70 Jan 24, 2025
0.1.66 Dec 31, 2024
0.1.58 Nov 29, 2024
0.1.23 Mar 30, 2024

#941 in Filesystem

Download history 212/week @ 2024-10-22 202/week @ 2024-10-29 507/week @ 2024-11-05 35/week @ 2024-11-12 42/week @ 2024-11-19 994/week @ 2024-11-26 131/week @ 2024-12-03 698/week @ 2024-12-10 195/week @ 2024-12-17 116/week @ 2024-12-24 620/week @ 2024-12-31 55/week @ 2025-01-07 35/week @ 2025-01-14 316/week @ 2025-01-21 201/week @ 2025-01-28 180/week @ 2025-02-04

735 downloads per month
Used in 11 crates (2 directly)

Apache-2.0

7KB
99 lines

A tiny utility library to avoid touching the filesystem if the content has not changed.

This is useful to avoid triggering unnecessary rebuilds in systems that look at the modification time (mtime) as part of their file fingerprint (e.g. cargo).

Dependencies

~1MB
~20K SLoC