Skip to main content

atomic_write_json

Function atomic_write_json 

Source
pub fn atomic_write_json(path: &Path, value: &impl Serialize) -> Result<()>
Expand description

Atomically write a serializable value to path using tmp + rename. Creates parent directories if needed.