Skip to main content

Module persist

Module persist 

Source
Expand description

Compatibility re-exports for persistence now owned by shine-core.

Functions§

atomic_write
Durably writes contents to path.
atomic_write_private
Durably writes a private file with owner-only permissions on Unix.
finalize_temp
Renames temp over dest, for callers that already wrote/streamed their own temp file (e.g. large-file copies) and only need the finalize step.
load_toml_or_default
Loads and parses a TOML file at path, or returns T::default() if it doesn’t exist yet. what is a human-readable label used in error messages (e.g. "app manifest").
save_toml_atomic
Serializes value as pretty TOML and atomically writes it to path. what is a human-readable label used in error messages.