atomic-replace 0.1.0

Replace a file atomically: write a sibling temp file, keep the old permissions and symlinks, optionally fsync, then rename it over the target
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[package]
name = "atomic-replace"
version = "0.1.0"
edition = "2021"
rust-version = "1.86"
description = "Replace a file atomically: write a sibling temp file, keep the old permissions and symlinks, optionally fsync, then rename it over the target"
license.workspace = true
repository = "https://github.com/pyrlyn/crates"
keywords = ["atomic", "write", "file", "rename", "fsync"]
categories = ["filesystem"]

[lints.rust]
unsafe_code = "forbid"

[dev-dependencies]
tempfile = "3"