]> git.proxmox.com Git - cargo.git/blob - vendor/tempfile/NEWS
New upstream version 0.47.0
[cargo.git] / vendor / tempfile / NEWS
1 3.1.0
2 =====
3
4 Features:
5
6 * Bump rand dependency to `0.7`.
7
8 Breaking: The minimum rust version is now `1.32.0`.
9
10 3.0.9
11 =====
12
13 Documentation:
14
15 * Add an example for reopening a named temporary file.
16 * Flesh out the security documentation.
17
18 Features:
19
20 * Introduce an `append` option to the builder.
21 * Errors:
22 * No longer implement the soft-deprecated `description`.
23 * Implement `source` instead of `cause`.
24
25 Breaking: The minimum rust version is now 1.30.
26
27 3.0.8
28 =====
29
30 This is a bugfix release.
31
32 Fixes:
33
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.
37
38 3.0.7
39 =====
40
41 Breaking:
42
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.
51
52 Features:
53
54 * Accept anything implementing `&AsRef<OsStr>` in the builder: &OsStr, &OsString, &Path, etc.
55
56 Fixes:
57
58 * Fix LFS support.
59 * Use absolute paths for named temporary files to guard against changes in the
60 current directory.
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.
65
66 Misc:
67
68 * Use modern stdlib features to avoid custom unsafe code. This reduces the
69 number of unsafe blocks from 12 to 4.
70
71 3.0.6
72 =====
73
74 * Don't hide temporary files on windows, fixing #66 and #69.
75
76 3.0.5
77 =====
78
79 Features:
80
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).
85
86 Misc:
87
88 * The rand version has been bumped to 0.6 (#74).
89
90 Bugs:
91
92 * Tempfile compiles again on Redox (#75).
93
94 3.0.4
95 =====
96
97 * Now compiles on unsupported platforms.
98
99 3.0.3
100 =====
101
102 * update rand to 0.5
103
104 3.0.2
105 =====
106
107 * Actually *delete* temporary files on non-Linux unix systems (thanks to
108 @oliverhenshaw for the fix and a test case).
109
110 3.0.1
111 =====
112
113 * Restore NamedTempFile::new_in
114
115 3.0.0
116 =====
117
118 * Adds temporary directory support (@KodrAus)
119 * Allow closing named temporary files without deleting them (@jasonwhite)
120
121 2.2.0
122 =====
123
124 * Redox Support
125
126 2.1.6
127 =====
128
129 * Remove build script and bump minimum rustc version to 1.9.0
130
131 2.1.5
132 =====
133
134 * Don't build platform-specific dependencies on all platforms.
135 * Cleanup some documentation.
136
137 2.1.4
138 =====
139
140 * Fix crates.io tags. No interesting changes.
141
142 2.1.3
143 =====
144
145 Export `PersistError`.
146
147 2.1.2
148 =====
149
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.
153
154 2.1.1
155 =====
156
157 Add LFS Support.
158
159 2.1.0
160 =====
161
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`.
165
166 2.0.1
167 =====
168
169 * Arm bugfix
170
171 2.0.0
172 =====
173
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.
177
178 To continue supporting shared temporary files, this new version adds a
179 `reopen()` method to `NamedTempFile`.