]>
Commit | Line | Data |
---|---|---|
62c5094d FG |
1 | 3.3.0 |
2 | ===== | |
3 | ||
4 | Features: | |
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 | ||
11 | Bug 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 | ||
16 | 3.2.0 | |
17 | ===== | |
18 | ||
19 | Features: | |
20 | ||
21 | * Bump rand dependency to `0.8`. | |
22 | * Bump cfg-if dependency to `1.0` | |
23 | ||
24 | Other than that, this release mostly includes small cleanups and simplifications. | |
25 | ||
26 | Breaking: The minimum rust version is now `1.40.0`. | |
27 | ||
07e530e8 XL |
28 | 3.1.0 |
29 | ===== | |
30 | ||
31 | Features: | |
32 | ||
33 | * Bump rand dependency to `0.7`. | |
34 | ||
35 | Breaking: The minimum rust version is now `1.32.0`. | |
36 | ||
37 | 3.0.9 | |
38 | ===== | |
39 | ||
40 | Documentation: | |
41 | ||
42 | * Add an example for reopening a named temporary file. | |
43 | * Flesh out the security documentation. | |
44 | ||
45 | Features: | |
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 | ||
52 | Breaking: The minimum rust version is now 1.30. | |
53 | ||
22758248 XL |
54 | 3.0.8 |
55 | ===== | |
56 | ||
57 | This is a bugfix release. | |
58 | ||
59 | Fixes: | |
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 | ||
65 | 3.0.7 | |
66 | ===== | |
67 | ||
68 | Breaking: | |
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 | ||
79 | Features: | |
80 | ||
81 | * Accept anything implementing `&AsRef<OsStr>` in the builder: &OsStr, &OsString, &Path, etc. | |
82 | ||
83 | Fixes: | |
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 | ||
93 | Misc: | |
94 | ||
95 | * Use modern stdlib features to avoid custom unsafe code. This reduces the | |
96 | number of unsafe blocks from 12 to 4. | |
97 | ||
98 | 3.0.6 | |
99 | ===== | |
100 | ||
101 | * Don't hide temporary files on windows, fixing #66 and #69. | |
102 | ||
103 | 3.0.5 | |
104 | ===== | |
105 | ||
106 | Features: | |
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 | ||
113 | Misc: | |
114 | ||
115 | * The rand version has been bumped to 0.6 (#74). | |
116 | ||
117 | Bugs: | |
118 | ||
119 | * Tempfile compiles again on Redox (#75). | |
120 | ||
121 | 3.0.4 | |
122 | ===== | |
123 | ||
124 | * Now compiles on unsupported platforms. | |
125 | ||
126 | 3.0.3 | |
127 | ===== | |
128 | ||
129 | * update rand to 0.5 | |
130 | ||
131 | 3.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 | ||
f8611cf8 VK |
137 | 3.0.1 |
138 | ===== | |
139 | ||
140 | * Restore NamedTempFile::new_in | |
141 | ||
142 | 3.0.0 | |
143 | ===== | |
144 | ||
145 | * Adds temporary directory support (@KodrAus) | |
146 | * Allow closing named temporary files without deleting them (@jasonwhite) | |
147 | ||
148 | 2.2.0 | |
149 | ===== | |
150 | ||
151 | * Redox Support | |
152 | ||
153 | 2.1.6 | |
154 | ===== | |
155 | ||
156 | * Remove build script and bump minimum rustc version to 1.9.0 | |
157 | ||
158 | 2.1.5 | |
159 | ===== | |
160 | ||
161 | * Don't build platform-specific dependencies on all platforms. | |
162 | * Cleanup some documentation. | |
163 | ||
164 | 2.1.4 | |
165 | ===== | |
166 | ||
167 | * Fix crates.io tags. No interesting changes. | |
168 | ||
169 | 2.1.3 | |
170 | ===== | |
171 | ||
172 | Export `PersistError`. | |
173 | ||
174 | 2.1.2 | |
175 | ===== | |
176 | ||
177 | Add `Read`/`Write`/`Seek` impls on `&NamedTempFile`. This mirrors the | |
178 | implementations on `&File`. One can currently just deref to a `&File` but these | |
179 | implementations are more discoverable. | |
180 | ||
181 | 2.1.1 | |
182 | ===== | |
183 | ||
184 | Add LFS Support. | |
185 | ||
186 | 2.1.0 | |
187 | ===== | |
188 | ||
189 | * Implement `AsRef<File>` for `NamedTempFile` allowing named temporary files to | |
190 | be borrowed as `File`s. | |
07e530e8 | 191 | * Add a method to convert a `NamedTempFile` to an unnamed temporary `File`. |
f8611cf8 VK |
192 | |
193 | 2.0.1 | |
194 | ===== | |
195 | ||
196 | * Arm bugfix | |
197 | ||
198 | 2.0.0 | |
199 | ===== | |
200 | ||
201 | This release replaces `TempFile` with a `tempfile()` function that returnes | |
202 | `std::fs::File` objects. These are significantly more useful because most rust | |
203 | libraries expect normal `File` objects. | |
204 | ||
205 | To continue supporting shared temporary files, this new version adds a | |
206 | `reopen()` method to `NamedTempFile`. |