13.2.0 2===== 3 4Features: 5 6* Bump rand dependency to `0.8`. 7* Bump cfg-if dependency to `1.0` 8 9Other than that, this release mostly includes small cleanups and simplifications. 10 11Breaking: The minimum rust version is now `1.40.0`. 12 133.1.0 14===== 15 16Features: 17 18* Bump rand dependency to `0.7`. 19 20Breaking: The minimum rust version is now `1.32.0`. 21 223.0.9 23===== 24 25Documentation: 26 27* Add an example for reopening a named temporary file. 28* Flesh out the security documentation. 29 30Features: 31 32* Introduce an `append` option to the builder. 33* Errors: 34 * No longer implement the soft-deprecated `description`. 35 * Implement `source` instead of `cause`. 36 37Breaking: The minimum rust version is now 1.30. 38 393.0.8 40===== 41 42This is a bugfix release. 43 44Fixes: 45 46* Export `PathPersistError`. 47* Fix a bug where flushing a `SpooledTempFile` to disk could fail to write part 48 of the file in some rare, yet-to-reproduced cases. 49 503.0.7 51===== 52 53Breaking: 54 55* `Builder::prefix` and `Builder::suffix` now accept a generic `&AsRef<OsStr>`. 56 This could affect type inference. 57* Temporary files (except unnamed temporary files on Windows and Linux >= 3.11) 58 now use absolute path names. This will break programs that create temporary 59 files relative to their current working directory when they don't have the 60 search permission (x) on some ancestor directory. This is only likely to 61 affect programs with strange chroot-less filesystem sandboxes. If you believe 62 you're affected by this issue, please comment on #40. 63 64Features: 65 66* Accept anything implementing `&AsRef<OsStr>` in the builder: &OsStr, &OsString, &Path, etc. 67 68Fixes: 69 70* Fix LFS support. 71* Use absolute paths for named temporary files to guard against changes in the 72 current directory. 73* Use absolute paths when creating unnamed temporary files on platforms that 74 can't create unlinked or auto-deleted temporary files. This fixes a very 75 unlikely race where the current directory could change while the temporary 76 file is being created. 77 78Misc: 79 80* Use modern stdlib features to avoid custom unsafe code. This reduces the 81 number of unsafe blocks from 12 to 4. 82 833.0.6 84===== 85 86* Don't hide temporary files on windows, fixing #66 and #69. 87 883.0.5 89===== 90 91Features: 92 93* Added a spooled temporary file implementation. This temporary file variant 94 starts out as an in-memory temporary file but "rolls-over" onto disk when it 95 grows over a specified size (#68). 96* Errors are now annotated with paths to make debugging easier (#73). 97 98Misc: 99 100* The rand version has been bumped to 0.6 (#74). 101 102Bugs: 103 104* Tempfile compiles again on Redox (#75). 105 1063.0.4 107===== 108 109* Now compiles on unsupported platforms. 110 1113.0.3 112===== 113 114* update rand to 0.5 115 1163.0.2 117===== 118 119* Actually *delete* temporary files on non-Linux unix systems (thanks to 120@oliverhenshaw for the fix and a test case). 121 1223.0.1 123===== 124 125* Restore NamedTempFile::new_in 126 1273.0.0 128===== 129 130* Adds temporary directory support (@KodrAus) 131* Allow closing named temporary files without deleting them (@jasonwhite) 132 1332.2.0 134===== 135 136* Redox Support 137 1382.1.6 139===== 140 141* Remove build script and bump minimum rustc version to 1.9.0 142 1432.1.5 144===== 145 146* Don't build platform-specific dependencies on all platforms. 147* Cleanup some documentation. 148 1492.1.4 150===== 151 152* Fix crates.io tags. No interesting changes. 153 1542.1.3 155===== 156 157Export `PersistError`. 158 1592.1.2 160===== 161 162Add `Read`/`Write`/`Seek` impls on `&NamedTempFile`. This mirrors the 163implementations on `&File`. One can currently just deref to a `&File` but these 164implementations are more discoverable. 165 1662.1.1 167===== 168 169Add LFS Support. 170 1712.1.0 172===== 173 174* Implement `AsRef<File>` for `NamedTempFile` allowing named temporary files to 175 be borrowed as `File`s. 176* Add a method to convert a `NamedTempFile` to an unnamed temporary `File`. 177 1782.0.1 179===== 180 181* Arm bugfix 182 1832.0.0 184===== 185 186This release replaces `TempFile` with a `tempfile()` function that returnes 187`std::fs::File` objects. These are significantly more useful because most rust 188libraries expect normal `File` objects. 189 190To continue supporting shared temporary files, this new version adds a 191`reopen()` method to `NamedTempFile`. 192