Skip to content

Commit bfbb917

Browse files
Update changelog
1 parent 0bcfe55 commit bfbb917

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Changelog
22

3+
## atomic-write-file 0.2.0
4+
5+
### New features
6+
7+
* Added the `AtomicWriteFile::directory` method to allow accessing the
8+
file descriptor of the parent directory, without making any system call (this
9+
method is available on all platforms, but it has a meaningful implementation
10+
only on Unix).
11+
12+
### Unix changes
13+
14+
* Updated dependency on `nix` to version 0.29.
15+
16+
* Sync the parent directory after committing or discarding the temporary file
17+
(via `fsync(2)`). This ensures that changes are persisted and not rolled-back
18+
if a crash occurs.
19+
20+
In the previous releases, syncing the directory was intended to be a step
21+
that had to be explicitly performed by the caller *if* they wanted this
22+
behavior, and it was intentionally left out as a performance improvement for
23+
those callers that did not care about changes being persisted. However we do
24+
realize that callers may not be aware of the importance of this step, hence
25+
now it's done automatically.
26+
27+
### Breaking changes
28+
29+
* The `unnamed-tmpfile` is now disabled by default and needs to be explicitly
30+
enabled with `features = ["unnamed-tmpfile"]` in `Cargo.toml`. This decision
31+
was made to better support processes that run early at boot, and filesystems
32+
that have poor support for anonymous temporary files.
33+
334
## atomic-write-file 0.1.4
435

536
### Linux changes

0 commit comments

Comments
 (0)