Jiyong Park | 7ce5f52 | 2021-11-01 09:47:19 +0900 | [diff] [blame] | 1 | 3.2.0 |
| 2 | ===== |
| 3 | |
| 4 | Features: |
| 5 | |
| 6 | * Bump rand dependency to `0.8`. |
| 7 | * Bump cfg-if dependency to `1.0` |
| 8 | |
| 9 | Other than that, this release mostly includes small cleanups and simplifications. |
| 10 | |
| 11 | Breaking: The minimum rust version is now `1.40.0`. |
| 12 | |
| 13 | 3.1.0 |
| 14 | ===== |
| 15 | |
| 16 | Features: |
| 17 | |
| 18 | * Bump rand dependency to `0.7`. |
| 19 | |
| 20 | Breaking: The minimum rust version is now `1.32.0`. |
| 21 | |
| 22 | 3.0.9 |
| 23 | ===== |
| 24 | |
| 25 | Documentation: |
| 26 | |
| 27 | * Add an example for reopening a named temporary file. |
| 28 | * Flesh out the security documentation. |
| 29 | |
| 30 | Features: |
| 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 | |
| 37 | Breaking: The minimum rust version is now 1.30. |
| 38 | |
| 39 | 3.0.8 |
| 40 | ===== |
| 41 | |
| 42 | This is a bugfix release. |
| 43 | |
| 44 | Fixes: |
| 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 | |
| 50 | 3.0.7 |
| 51 | ===== |
| 52 | |
| 53 | Breaking: |
| 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 | |
| 64 | Features: |
| 65 | |
| 66 | * Accept anything implementing `&AsRef<OsStr>` in the builder: &OsStr, &OsString, &Path, etc. |
| 67 | |
| 68 | Fixes: |
| 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 | |
| 78 | Misc: |
| 79 | |
| 80 | * Use modern stdlib features to avoid custom unsafe code. This reduces the |
| 81 | number of unsafe blocks from 12 to 4. |
| 82 | |
| 83 | 3.0.6 |
| 84 | ===== |
| 85 | |
| 86 | * Don't hide temporary files on windows, fixing #66 and #69. |
| 87 | |
| 88 | 3.0.5 |
| 89 | ===== |
| 90 | |
| 91 | Features: |
| 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 | |
| 98 | Misc: |
| 99 | |
| 100 | * The rand version has been bumped to 0.6 (#74). |
| 101 | |
| 102 | Bugs: |
| 103 | |
| 104 | * Tempfile compiles again on Redox (#75). |
| 105 | |
| 106 | 3.0.4 |
| 107 | ===== |
| 108 | |
| 109 | * Now compiles on unsupported platforms. |
| 110 | |
| 111 | 3.0.3 |
| 112 | ===== |
| 113 | |
| 114 | * update rand to 0.5 |
| 115 | |
| 116 | 3.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 | |
| 122 | 3.0.1 |
| 123 | ===== |
| 124 | |
| 125 | * Restore NamedTempFile::new_in |
| 126 | |
| 127 | 3.0.0 |
| 128 | ===== |
| 129 | |
| 130 | * Adds temporary directory support (@KodrAus) |
| 131 | * Allow closing named temporary files without deleting them (@jasonwhite) |
| 132 | |
| 133 | 2.2.0 |
| 134 | ===== |
| 135 | |
| 136 | * Redox Support |
| 137 | |
| 138 | 2.1.6 |
| 139 | ===== |
| 140 | |
| 141 | * Remove build script and bump minimum rustc version to 1.9.0 |
| 142 | |
| 143 | 2.1.5 |
| 144 | ===== |
| 145 | |
| 146 | * Don't build platform-specific dependencies on all platforms. |
| 147 | * Cleanup some documentation. |
| 148 | |
| 149 | 2.1.4 |
| 150 | ===== |
| 151 | |
| 152 | * Fix crates.io tags. No interesting changes. |
| 153 | |
| 154 | 2.1.3 |
| 155 | ===== |
| 156 | |
| 157 | Export `PersistError`. |
| 158 | |
| 159 | 2.1.2 |
| 160 | ===== |
| 161 | |
| 162 | Add `Read`/`Write`/`Seek` impls on `&NamedTempFile`. This mirrors the |
| 163 | implementations on `&File`. One can currently just deref to a `&File` but these |
| 164 | implementations are more discoverable. |
| 165 | |
| 166 | 2.1.1 |
| 167 | ===== |
| 168 | |
| 169 | Add LFS Support. |
| 170 | |
| 171 | 2.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 | |
| 178 | 2.0.1 |
| 179 | ===== |
| 180 | |
| 181 | * Arm bugfix |
| 182 | |
| 183 | 2.0.0 |
| 184 | ===== |
| 185 | |
| 186 | This release replaces `TempFile` with a `tempfile()` function that returnes |
| 187 | `std::fs::File` objects. These are significantly more useful because most rust |
| 188 | libraries expect normal `File` objects. |
| 189 | |
| 190 | To continue supporting shared temporary files, this new version adds a |
| 191 | `reopen()` method to `NamedTempFile`. |