6 * Bump rand dependency to `0.7`.
8 Breaking: The minimum rust version is now `1.32.0`.
15 * Add an example for reopening a named temporary file.
16 * Flesh out the security documentation.
20 * Introduce an `append` option to the builder.
22 * No longer implement the soft-deprecated `description`.
23 * Implement `source` instead of `cause`.
25 Breaking: The minimum rust version is now 1.30.
30 This is a bugfix release.
34 * Export `PathPersistError`.
35 * Fix a bug where flushing a `SpooledTempFile` to disk could fail to write part
36 of the file in some rare, yet-to-reproduced cases.
43 * `Builder::prefix` and `Builder::suffix` now accept a generic `&AsRef<OsStr>`.
44 This could affect type inference.
45 * Temporary files (except unnamed temporary files on Windows and Linux >= 3.11)
46 now use absolute path names. This will break programs that create temporary
47 files relative to their current working directory when they don't have the
48 search permission (x) on some ancestor directory. This is only likely to
49 affect programs with strange chroot-less filesystem sandboxes. If you believe
50 you're affected by this issue, please comment on #40.
54 * Accept anything implementing `&AsRef<OsStr>` in the builder: &OsStr, &OsString, &Path, etc.
59 * Use absolute paths for named temporary files to guard against changes in the
61 * Use absolute paths when creating unnamed temporary files on platforms that
62 can't create unlinked or auto-deleted temporary files. This fixes a very
63 unlikely race where the current directory could change while the temporary
64 file is being created.
68 * Use modern stdlib features to avoid custom unsafe code. This reduces the
69 number of unsafe blocks from 12 to 4.
74 * Don't hide temporary files on windows, fixing #66 and #69.
81 * Added a spooled temporary file implementation. This temporary file variant
82 starts out as an in-memory temporary file but "rolls-over" onto disk when it
83 grows over a specified size (#68).
84 * Errors are now annotated with paths to make debugging easier (#73).
88 * The rand version has been bumped to 0.6 (#74).
92 * Tempfile compiles again on Redox (#75).
97 * Now compiles on unsupported platforms.
107 * Actually *delete* temporary files on non-Linux unix systems (thanks to
108 @oliverhenshaw for the fix and a test case).
113 * Restore NamedTempFile::new_in
118 * Adds temporary directory support (@KodrAus)
119 * Allow closing named temporary files without deleting them (@jasonwhite)
129 * Remove build script and bump minimum rustc version to 1.9.0
134 * Don't build platform-specific dependencies on all platforms.
135 * Cleanup some documentation.
140 * Fix crates.io tags. No interesting changes.
145 Export `PersistError`.
150 Add `Read`/`Write`/`Seek` impls on `&NamedTempFile`. This mirrors the
151 implementations on `&File`. One can currently just deref to a `&File` but these
152 implementations are more discoverable.
162 * Implement `AsRef<File>` for `NamedTempFile` allowing named temporary files to
163 be borrowed as `File`s.
164 * Add a method to convert a `NamedTempFile` to an unnamed temporary `File`.
174 This release replaces `TempFile` with a `tempfile()` function that returnes
175 `std::fs::File` objects. These are significantly more useful because most rust
176 libraries expect normal `File` objects.
178 To continue supporting shared temporary files, this new version adds a
179 `reopen()` method to `NamedTempFile`.