pub fn write_atomic_std(path: &Path, contents: impl AsRef<[u8]>) -> Result<()>
Write bytes to path atomically, best-effort.
path
The write happens via a temporary file in the same directory followed by a rename.