13.3.0 2===== 3 4Features: 5 6* Replace rand with fastrand for a significantly smaller dependency tree. Cryptographic randomness 7 isn't necessary for temporary file names, and isn't all that helpful either. 8* Add limited WASI support. 9* Add a function to extract the inner data from a `SpooledTempFile`. 10 11Bug Fixes: 12 13* Make it possible to persist unnamed temporary files on linux by removing the `O_EXCL` flag. 14* Fix redox minimum crate version. 15 163.2.0 17===== 18 19Features: 20 21* Bump rand dependency to `0.8`. 22* Bump cfg-if dependency to `1.0` 23 24Other than that, this release mostly includes small cleanups and simplifications. 25 26Breaking: The minimum rust version is now `1.40.0`. 27 283.1.0 29===== 30 31Features: 32 33* Bump rand dependency to `0.7`. 34 35Breaking: The minimum rust version is now `1.32.0`. 36 373.0.9 38===== 39 40Documentation: 41 42* Add an example for reopening a named temporary file. 43* Flesh out the security documentation. 44 45Features: 46 47* Introduce an `append` option to the builder. 48* Errors: 49 * No longer implement the soft-deprecated `description`. 50 * Implement `source` instead of `cause`. 51 52Breaking: The minimum rust version is now 1.30. 53 543.0.8 55===== 56 57This is a bugfix release. 58 59Fixes: 60 61* Export `PathPersistError`. 62* Fix a bug where flushing a `SpooledTempFile` to disk could fail to write part 63 of the file in some rare, yet-to-reproduced cases. 64 653.0.7 66===== 67 68Breaking: 69 70* `Builder::prefix` and `Builder::suffix` now accept a generic `&AsRef<OsStr>`. 71 This could affect type inference. 72* Temporary files (except unnamed temporary files on Windows and Linux >= 3.11) 73 now use absolute path names. This will break programs that create temporary 74 files relative to their current working directory when they don't have the 75 search permission (x) on some ancestor directory. This is only likely to 76 affect programs with strange chroot-less filesystem sandboxes. If you believe 77 you're affected by this issue, please comment on #40. 78 79Features: 80 81* Accept anything implementing `&AsRef<OsStr>` in the builder: &OsStr, &OsString, &Path, etc. 82 83Fixes: 84 85* Fix LFS support. 86* Use absolute paths for named temporary files to guard against changes in the 87 current directory. 88* Use absolute paths when creating unnamed temporary files on platforms that 89 can't create unlinked or auto-deleted temporary files. This fixes a very 90 unlikely race where the current directory could change while the temporary 91 file is being created. 92 93Misc: 94 95* Use modern stdlib features to avoid custom unsafe code. This reduces the 96 number of unsafe blocks from 12 to 4. 97 983.0.6 99===== 100 101* Don't hide temporary files on windows, fixing #66 and #69. 102 1033.0.5 104===== 105 106Features: 107 108* Added a spooled temporary file implementation. This temporary file variant 109 starts out as an in-memory temporary file but "rolls-over" onto disk when it 110 grows over a specified size (#68). 111* Errors are now annotated with paths to make debugging easier (#73). 112 113Misc: 114 115* The rand version has been bumped to 0.6 (#74). 116 117Bugs: 118 119* Tempfile compiles again on Redox (#75). 120 1213.0.4 122===== 123 124* Now compiles on unsupported platforms. 125 1263.0.3 127===== 128 129* update rand to 0.5 130 1313.0.2 132===== 133 134* Actually *delete* temporary files on non-Linux unix systems (thanks to 135@oliverhenshaw for the fix and a test case). 136 1373.0.1 138===== 139 140* Restore NamedTempFile::new_in 141 1423.0.0 143===== 144 145* Adds temporary directory support (@KodrAus) 146* Allow closing named temporary files without deleting them (@jasonwhite) 147 1482.2.0 149===== 150 151* Redox Support 152 1532.1.6 154===== 155 156* Remove build script and bump minimum rustc version to 1.9.0 157 1582.1.5 159===== 160 161* Don't build platform-specific dependencies on all platforms. 162* Cleanup some documentation. 163 1642.1.4 165===== 166 167* Fix crates.io tags. No interesting changes. 168 1692.1.3 170===== 171 172Export `PersistError`. 173 1742.1.2 175===== 176 177Add `Read`/`Write`/`Seek` impls on `&NamedTempFile`. This mirrors the 178implementations on `&File`. One can currently just deref to a `&File` but these 179implementations are more discoverable. 180 1812.1.1 182===== 183 184Add LFS Support. 185 1862.1.0 187===== 188 189* Implement `AsRef<File>` for `NamedTempFile` allowing named temporary files to 190 be borrowed as `File`s. 191* Add a method to convert a `NamedTempFile` to an unnamed temporary `File`. 192 1932.0.1 194===== 195 196* Arm bugfix 197 1982.0.0 199===== 200 201This release replaces `TempFile` with a `tempfile()` function that returnes 202`std::fs::File` objects. These are significantly more useful because most rust 203libraries expect normal `File` objects. 204 205To continue supporting shared temporary files, this new version adds a 206`reopen()` method to `NamedTempFile`. 207