Debian Codegraph @

debian/rust-vendor/zip/CHANGELOG.md

raw
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8 ## [Unreleased]
9
10 ## [8.6.0](https://github.com/zip-rs/zip2/compare/v8.5.1...v8.6.0) - 2026-04-25
11
12 ### <!-- 0 -->🚀 Features
13
14 - add `compression not supported` as enum error ([#774](https://github.com/zip-rs/zip2/pull/774))
15
16 ### <!-- 1 -->🐛 Bug Fixes
17
18 - allow for `[u8]` as filename ([#775](https://github.com/zip-rs/zip2/pull/775))
19
20 ### <!-- 2 -->🚜 Refactor
21
22 - mark `ZipFlags` as non-exhaustive and add test for `HasZipMetadata` ([#777](https://github.com/zip-rs/zip2/pull/777))
23 - use and simplify is_dir ([#776](https://github.com/zip-rs/zip2/pull/776))
24
25 ## [8.5.1](https://github.com/zip-rs/zip2/compare/v8.5.0...v8.5.1) - 2026-04-06
26
27 ### <!-- 2 -->🚜 Refactor
28
29 - change magic finder to stack buffer ([#763](https://github.com/zip-rs/zip2/pull/763))
30 - simplify extra field parsing ([#764](https://github.com/zip-rs/zip2/pull/764))
31
32 ## [8.5.0](https://github.com/zip-rs/zip2/compare/v8.4.0...v8.5.0) - 2026-04-01
33
34 ### <!-- 1 -->🐛 Bug Fixes
35
36 - remove `zip64 comment` and add `zip64 extensible data sector` ([#747](https://github.com/zip-rs/zip2/pull/747))
37
38 ### <!-- 2 -->🚜 Refactor
39
40 - remove useless magic in struct ([#730](https://github.com/zip-rs/zip2/pull/730))
41 - change extra_field from Arc<Vec<u8>> to Arc<[u8]> ([#741](https://github.com/zip-rs/zip2/pull/741))
42
43 ### <!-- 7 -->⚙️ Miscellaneous Tasks
44
45 - cleanup README ([#758](https://github.com/zip-rs/zip2/pull/758))
46
47 ## [8.4.0](https://github.com/zip-rs/zip2/compare/v8.3.1...v8.4.0) - 2026-03-23
48
49 ### <!-- 0 -->🚀 Features
50
51 - add a check for building benches ([#748](https://github.com/zip-rs/zip2/pull/748))
52
53 ### <!-- 2 -->🚜 Refactor
54
55 - split part of `read.rs` for code readability ([#744](https://github.com/zip-rs/zip2/pull/744))
56 - remove unused allow ([#745](https://github.com/zip-rs/zip2/pull/745))
57
58 ### <!-- 4 -->⚡ Performance
59
60 - skip BufReader for Stored files in make_reader ([#739](https://github.com/zip-rs/zip2/pull/739))
61
62 ### <!-- 7 -->⚙️ Miscellaneous Tasks
63
64 - move pull request template to correct folder ([#749](https://github.com/zip-rs/zip2/pull/749))
65
66 ## [8.3.1](https://github.com/zip-rs/zip2/compare/v8.3.0...v8.3.1) - 2026-03-21
67
68 ### <!-- 2 -->🚜 Refactor
69
70 - use `AexEncryption::new` ([#736](https://github.com/zip-rs/zip2/pull/736))
71 - update tests to add big endian miri check ([#735](https://github.com/zip-rs/zip2/pull/735))
72
73 ### <!-- 7 -->⚙️ Miscellaneous Tasks
74
75 - cleanup repository files ([#743](https://github.com/zip-rs/zip2/pull/743))
76
77 ## [8.3.0](https://github.com/zip-rs/zip2/compare/v8.2.0...v8.3.0) - 2026-03-19
78
79 ### <!-- 0 -->🚀 Features
80
81 - add must_use ([#727](https://github.com/zip-rs/zip2/pull/727))
82 - improve and fix extended timestamp extra field parsing ([#713](https://github.com/zip-rs/zip2/pull/713))
83 - add crc32 ignore option ([#710](https://github.com/zip-rs/zip2/pull/710))
84 - path related code in single file ([#712](https://github.com/zip-rs/zip2/pull/712))
85
86 ### <!-- 1 -->🐛 Bug Fixes
87
88 - Malformed ZIP64 file output ([#715](https://github.com/zip-rs/zip2/pull/715)) ([#717](https://github.com/zip-rs/zip2/pull/717))
89
90 ### <!-- 2 -->🚜 Refactor
91
92 - refactor some imports ([#734](https://github.com/zip-rs/zip2/pull/734))
93 - move code to distinct file (datetime, FixedSizeBlock) ([#733](https://github.com/zip-rs/zip2/pull/733))
94 - move stream code to `src/read/stream.rs` ([#731](https://github.com/zip-rs/zip2/pull/731))
95 - remove zip64 extra field update ([#732](https://github.com/zip-rs/zip2/pull/732))
96 - improve part of the code with clippy help ([#725](https://github.com/zip-rs/zip2/pull/725))
97 - simplify code for unicode extra field and improve error message ([#724](https://github.com/zip-rs/zip2/pull/724))
98 - reorganize code ([#714](https://github.com/zip-rs/zip2/pull/714))
99
100 ### Deps
101
102 - avoid pulling in `zeroize_derive` ([#720](https://github.com/zip-rs/zip2/pull/720))
103
104 ## [8.2.0](https://github.com/zip-rs/zip2/compare/v8.1.0...v8.2.0) - 2026-03-02
105
106 ### <!-- 0 -->🚀 Features
107
108 - allow custom salt ([#680](https://github.com/zip-rs/zip2/pull/680))
109 - Support compressing bzip2 when feature `bzip2-rs` is enabled, since `bzip2/bzip2-sys` now supports it ([#685](https://github.com/zip-rs/zip2/pull/685))
110 - enforce clippy in CI ([#674](https://github.com/zip-rs/zip2/pull/674))
111
112 ### <!-- 1 -->🐛 Bug Fixes
113
114 - zip64 central header (issue 617) ([#629](https://github.com/zip-rs/zip2/pull/629))
115 - allow aes password as bytes ([#686](https://github.com/zip-rs/zip2/pull/686))
116 - handle extra field padding ([#682](https://github.com/zip-rs/zip2/pull/682))
117
118 ### <!-- 2 -->🚜 Refactor
119
120 - Simplify 2 type conversions in src/write.rs ([#687](https://github.com/zip-rs/zip2/pull/687))
121
122 ### <!-- 4 -->⚡ Performance
123
124 - AI tweaks for string type conversions in src/types.rs ([#670](https://github.com/zip-rs/zip2/pull/670))
125
126 ## [8.1.0](https://github.com/zip-rs/zip2/compare/v8.0.0...v8.1.0) - 2026-02-16
127
128 ### <!-- 0 -->🚀 Features
129
130 - *(writer)* Allow getting underlying writer of ZipWriter ([#464](https://github.com/zip-rs/zip2/pull/464))
131 - add system to FileOption, so byte-for-byte identical archives can be created across platforms ([#660](https://github.com/zip-rs/zip2/pull/660))
132
133 ### <!-- 1 -->🐛 Bug Fixes
134
135 - Bugs in extra-data length calculation in src/write.rs ([#662](https://github.com/zip-rs/zip2/pull/662))
136
137 ## [8.0.0](https://github.com/zip-rs/zip2/compare/v7.4.0...v8.0.0) - 2026-02-14
138
139 ### <!-- 0 -->🚀 Features
140
141 - document zip flags as enum ([#639](https://github.com/zip-rs/zip2/pull/639))
142 - Migrate to Rust 2024 ([#650](https://github.com/zip-rs/zip2/pull/650))
143 - [**breaking**] Remove deprecated methods of `DateTime` ([#597](https://github.com/zip-rs/zip2/pull/597))
144
145 ## [7.4.0](https://github.com/zip-rs/zip2/compare/v7.3.0...v7.4.0) - 2026-02-05
146
147 ### <!-- 0 -->🚀 Features
148
149 - Increase MSRV to 1.88 and update dependencies ([#626](https://github.com/zip-rs/zip2/pull/626))
150
151 ## [7.3.0](https://github.com/zip-rs/zip2/compare/v7.3.0-pre1...v7.3.0) - 2026-02-04
152
153 ### <!-- 0 -->🚀 Features
154
155 - cleanup the benchmarks and Cargo.toml ([#606](https://github.com/zip-rs/zip2/pull/606))
156 - Add support for per-file comments ([#543](https://github.com/zip-rs/zip2/pull/543))
157
158 ### <!-- 1 -->🐛 Bug Fixes
159
160 - Document feature `unreserved` and make the mapping of extra fields public ([#616](https://github.com/zip-rs/zip2/pull/616))
161 - Return an error if abort_file() fails when exceeding non-large-file limit ([#598](https://github.com/zip-rs/zip2/pull/598))
162
163 ### <!-- 7 -->⚙️ Miscellaneous Tasks
164
165 - Bump version to 7.3.0 (semver checks fail if it's still 7.3.0-pre1)
166
167 ## [7.3.0-pre1](https://github.com/zip-rs/zip2/compare/v7.2.0...v7.3.0-pre1) - 2026-01-27
168
169 ### <!-- 1 -->🐛 Bug Fixes
170
171 - Reject empty ZipCrypto password when encrypting files (can still be used when decrypting)
172 - make zip crate safer and more readable ([#536](https://github.com/zip-rs/zip2/pull/536))
173
174 ### <!-- 4 -->⚡ Performance
175
176 - Optimizations for CP437 conversion ([#559](https://github.com/zip-rs/zip2/pull/559))
177
178 ### <!-- 7 -->⚙️ Miscellaneous Tasks
179
180 - Trigger release 7.3.0-pre1 to reset cargo-semver-checks baseline
181
182 ## [7.2.0](https://github.com/zip-rs/zip2/compare/v7.1.0...v7.2.0) - 2026-01-20
183
184 ### <!-- 0 -->🚀 Features
185
186 - add read_zipfile_from_stream_with_compressed_size ([#70](https://github.com/zip-rs/zip2/pull/70))
187 - Allow choosing bzip2 rust backend ([#329](https://github.com/zip-rs/zip2/pull/329))
188
189 ### <!-- 1 -->🐛 Bug Fixes
190
191 - Need to include zip64 extra field in central directory (fix #353) ([#360](https://github.com/zip-rs/zip2/pull/360))
192 - Fails to extract file which might or might not be malformed ([#376](https://github.com/zip-rs/zip2/pull/376)) ([#426](https://github.com/zip-rs/zip2/pull/426))
193 - *(aes)* Allow AES encryption while streaming ([#463](https://github.com/zip-rs/zip2/pull/463))
194 - Default "platform" field in zip files should be set to the local platform, rather than always "Unix" ([#470](https://github.com/zip-rs/zip2/pull/470)) ([#471](https://github.com/zip-rs/zip2/pull/471))
195
196 ### <!-- 2 -->🚜 Refactor
197
198 - Define cfg_if! and cfg_if_expr! internal macros ([#438](https://github.com/zip-rs/zip2/pull/438))
199
200 ### <!-- 4 -->⚡ Performance
201
202 - Change an assert to debug_assert when encrypting/decrypting AES, and eliminate a fallible operation ([#521](https://github.com/zip-rs/zip2/pull/521))
203 - eliminate a String clone per new file added to archive, and other related refactors ([#522](https://github.com/zip-rs/zip2/pull/522))
204
205 ## [7.1.0](https://github.com/zip-rs/zip2/compare/v7.0.0...v7.1.0) - 2026-01-14
206
207 ### <!-- 0 -->🚀 Features
208
209 - display the underlying error in Display impl for `ZipError` ([#483](https://github.com/zip-rs/zip2/pull/483))
210 - Enable creation of `ZipArchive` without reparsing ([#485](https://github.com/zip-rs/zip2/pull/485))
211
212 ### <!-- 1 -->🐛 Bug Fixes
213
214 - Return InvalidPassword rather than panic when AES key is the wrong length ([#457](https://github.com/zip-rs/zip2/pull/457))
215 - bench with auto zip64 comment ([#505](https://github.com/zip-rs/zip2/pull/505))
216 - add condition for `getrandom` dependency ([#504](https://github.com/zip-rs/zip2/pull/504))
217 - *(zipcrypto)* Support streaming ZipCrypto encryption, don't store entire file in memory ([#462](https://github.com/zip-rs/zip2/pull/462))
218
219 ### <!-- 2 -->🚜 Refactor
220
221 - Clean up imports and move types ([#461](https://github.com/zip-rs/zip2/pull/461))
222 - Replace handwritten `Ord` and `PartialOrd` for `DateTime` ([#484](https://github.com/zip-rs/zip2/pull/484))
223
224 ### <!-- 7 -->⚙️ Miscellaneous Tasks
225
226 - Lock `lzma-rust2` to at least 0.15.5 ([#491](https://github.com/zip-rs/zip2/pull/491))
227
228 ## [7.0.0](https://github.com/zip-rs/zip2/compare/v6.0.0...v7.0.0) - 2025-12-05
229
230 ### <!-- 9 -->⚠️ Breaking Changes
231
232 - Removed the following features: `getrandom`, `hmac`, `pbkdf2`, `sha1`, `zeroize`.
233 - Removed `lzma-static` and `xz-static` feature flags, which were deprecated synonyms of `lzma` and `xz`. ([#405](https://github.com/zip-rs/zip2/pull/405), [#425](https://github.com/zip-rs/zip2/pull/425))
234
235 ### <!-- 0 -->🚀 Features
236
237 - *(`SimpleFileOptions`)* const DEFAULT implementation ([#474](https://github.com/zip-rs/zip2/pull/474))
238 - ZipWriter `set_auto_large_file()` method to enable large-file data descriptor when necessary ([#468](https://github.com/zip-rs/zip2/pull/468))
239
240 ### <!-- 1 -->🐛 Bug Fixes
241
242 - print previous error when failing to search another cde ([#460](https://github.com/zip-rs/zip2/pull/460))
243 - cargo doc warnings ([#472](https://github.com/zip-rs/zip2/pull/472))
244 - Write ZIP64 data descriptors when large_file option is true ([#467](https://github.com/zip-rs/zip2/pull/467))
245 - Pin generic-array to an old version to work around https://github.com/RustCrypto/traits/issues/2036 until next RustCrypto & aes-crypto releases ([#458](https://github.com/zip-rs/zip2/pull/458))
246
247 ### <!-- 7 -->⚙️ Miscellaneous Tasks
248
249 - Revert version bump so that release-plz will trigger
250 - expose more flate2 feature flags ([#476](https://github.com/zip-rs/zip2/pull/476))
251 - Next release will be 7.0.0
252 - release v6.0.0 ([#442](https://github.com/zip-rs/zip2/pull/442))
253
254 ### Deps
255
256 - Bump lzma-rust2 to v0.15 ([#465](https://github.com/zip-rs/zip2/pull/465))
257
258 ## [6.0.0](https://github.com/zip-rs/zip2/compare/v5.1.1...v6.0.0) - 2025-10-09
259
260 ### <!-- 0 -->🚀 Features
261
262 - Add by_index_with_options(), which can be used to ignore encryption in a file's metadata ([#439](https://github.com/zip-rs/zip2/pull/439)) and may be used for other file-specific overrides in the future.
263
264 ### <!-- 7 -->⚙️ Miscellaneous Tasks
265
266 - [**breaking**] `FileOptions::add_extra_data` is now generic and accepts any `AsRef<[u8]>`. (#435)
267
268 ## [5.1.1](https://github.com/zip-rs/zip2/compare/v5.1.0...v5.1.1) - 2025-09-11
269
270 ### <!-- 1 -->🐛 Bug Fixes
271
272 - panic when reading empty extended-timestamp field ([#404](https://github.com/zip-rs/zip2/pull/404)) ([#422](https://github.com/zip-rs/zip2/pull/422))
273 - Restore original file timestamp when unzipping with `chrono` ([#46](https://github.com/zip-rs/zip2/pull/46))
274
275 ### <!-- 7 -->⚙️ Miscellaneous Tasks
276
277 - Configure Amazon Q rules ([#421](https://github.com/zip-rs/zip2/pull/421))
278
279 ## [5.1.0](https://github.com/zip-rs/zip2/compare/v5.0.1...v5.1.0) - 2025-09-10
280
281 ### <!-- 0 -->🚀 Features
282
283 - Add legacy shrink/reduce/implode compression ([#303](https://github.com/zip-rs/zip2/pull/303))
284
285 ## [5.0.1](https://github.com/zip-rs/zip2/compare/v5.0.0...v5.0.1) - 2025-09-09
286
287 ### <!-- 1 -->🐛 Bug Fixes
288
289 - AES metadata was not copied correctly in raw copy methods, which could corrupt the copied file. ([#417](https://github.com/zip-rs/zip2/pull/417))
290
291 ## [5.0.0](https://github.com/zip-rs/zip2/compare/v4.6.1...v5.0.0) - 2025-09-05
292
293 ### <!-- 0 -->🚀 Features
294
295 - Implement by_path*() methods on ZipArchive ([#382](https://github.com/zip-rs/zip2/pull/382))
296
297 ## [4.6.1](https://github.com/zip-rs/zip2/compare/v4.6.0...v4.6.1) - 2025-09-03
298
299 ### <!-- 1 -->🐛 Bug Fixes
300
301 - Fixes an issue introduced by the swap from `lzma-rs` to `liblzma` ([#407](https://github.com/zip-rs/zip2/pull/407))
302
303 ## [4.6.0](https://github.com/zip-rs/zip2/compare/v4.5.0...v4.6.0) - 2025-08-30
304
305 ### <!-- 0 -->🚀 Features
306
307 - Allow to read zip files with unsupported extended timestamps ([#400](https://github.com/zip-rs/zip2/pull/400))
308
309 ### <!-- 1 -->🐛 Bug Fixes
310
311 - enable clamp_opt for ppmd and xz ([#401](https://github.com/zip-rs/zip2/pull/401))
312
313 ## [4.5.0](https://github.com/zip-rs/zip2/compare/v4.4.0...v4.5.0) - 2025-08-21
314
315 ### <!-- 0 -->🚀 Features
316
317 - Allow reading ZIP files where the central directory comes *before* the files ([#384](https://github.com/zip-rs/zip2/pull/384)) ([#396](https://github.com/zip-rs/zip2/pull/396))
318
319 ## [4.4.0](https://github.com/zip-rs/zip2/compare/v4.3.0...v4.4.0) - 2025-08-21
320
321 ### <!-- 0 -->🚀 Features
322
323 - Add `lzma-static` and `xz-static` features that enable `liblzma/static` ([#393](https://github.com/zip-rs/zip2/pull/393))
324
325 ### <!-- 7 -->⚙️ Miscellaneous Tasks
326
327 - Move deprecated annotations to fix a Clippy warning ([#391](https://github.com/zip-rs/zip2/pull/391))
328
329 ## [4.3.0](https://github.com/zip-rs/zip2/compare/v4.2.0...v4.3.0) - 2025-07-09
330
331 ### <!-- 0 -->🚀 Features
332
333 - Add support for PPMd ([#370](https://github.com/zip-rs/zip2/pull/370))
334
335 ## [4.2.0](https://github.com/zip-rs/zip2/compare/v4.1.0...v4.2.0) - 2025-06-21
336
337 ### <!-- 0 -->🚀 Features
338
339 - Write ZIP file to stream ([#246](https://github.com/zip-rs/zip2/pull/246))
340
341 ## [4.1.0](https://github.com/zip-rs/zip2/compare/v4.0.0...v4.1.0) - 2025-06-14
342
343 ### <!-- 0 -->🚀 Features
344
345 - Add has_overlapping_files method
346
347 ## [4.0.0](https://github.com/zip-rs/zip2/compare/v3.0.0...v4.0.0) - 2025-05-21
348
349 ### <!-- 1 -->🐛 Bug Fixes
350
351 - Allow extraction of Zip64 where "Version needed to extract" is higher than "Version made by" ([#356](https://github.com/zip-rs/zip2/pull/356))
352
353 ### <!-- 7 -->⚙️ Miscellaneous Tasks
354
355 - Revert nt-time upgrade (would increase MSRV)
356 - Revert constant_time_eq update (would increase MSRV)
357 - Update fully-qualified names of liblzma imports
358
359 ## [3.0.0](https://github.com/zip-rs/zip2/compare/v2.6.1...v3.0.0) - 2025-05-14
360
361 ### <!-- 1 -->🐛 Bug Fixes
362
363 - return correct offset in SeekableTake::seek ([#342](https://github.com/zip-rs/zip2/pull/342))
364 - When only zopfli is available, decompression of deflate should not be possible ([#348](https://github.com/zip-rs/zip2/pull/348))
365 - Specify `flate2` dependency of the `deflate-flate2` feature. ([#345](https://github.com/zip-rs/zip2/pull/345))
366
367 ### <!-- 7 -->⚙️ Miscellaneous Tasks
368
369 - drop unused crossbeam-utils dependency ([#339](https://github.com/zip-rs/zip2/pull/339))
370 - remove `deflate-flate2` dependency on specific backend
371 - [**breaking**] Drop deprecated `deflate-miniz` feature flag ([#351](https://github.com/zip-rs/zip2/pull/351))
372
373 ## [2.6.1](https://github.com/zip-rs/zip2/compare/v2.6.0...v2.6.1) - 2025-04-03
374
375 ### <!-- 1 -->🐛 Bug Fixes
376
377 - avoid scanning through all local file headers while opening an archive ([#281](https://github.com/zip-rs/zip2/pull/281))
378
379 ## [2.6.0](https://github.com/zip-rs/zip2/compare/v2.5.0...v2.6.0) - 2025-03-30
380
381 - No documented changes.
382
383 ## [2.5.0](https://github.com/zip-rs/zip2/compare/v2.4.2...v2.5.0) - 2025-03-23
384
385 ### <!-- 0 -->🚀 Features
386
387 - Add support for `time::PrimitiveDateTime` ([#322](https://github.com/zip-rs/zip2/pull/322))
388 - Add `jiff` integration ([#323](https://github.com/zip-rs/zip2/pull/323))
389
390 ### <!-- 1 -->🐛 Bug Fixes
391
392 - improve error message for duplicated file ([#277](https://github.com/zip-rs/zip2/pull/277))
393
394 ## [2.4.2](https://github.com/zip-rs/zip2/compare/v2.4.1...v2.4.2) - 2025-03-18
395
396 ### <!-- 1 -->🐛 Bug Fixes
397
398 - `deep_copy_file` produced a mangled file header on big-endian platforms ([#309](https://github.com/zip-rs/zip2/pull/309))
399
400 ## [2.4.1](https://github.com/zip-rs/zip2/compare/v2.4.0...v2.4.1) - 2025-03-17
401
402 ### <!-- 1 -->🐛 Bug Fixes
403
404 - type issue in test
405 - double as_ref().canonicalize()?
406 - CI failures
407 - Create directory for extraction if necessary ([#314](https://github.com/zip-rs/zip2/pull/314))
408
409 ## [2.4.0](https://github.com/zip-rs/zip2/compare/v2.3.0...v2.4.0) - 2025-03-17
410
411 ### <!-- 0 -->🚀 Features
412
413 - `ZipArchive::root_dir` and `ZipArchive::extract_unwrapped_root_dir` ([#304](https://github.com/zip-rs/zip2/pull/304))
414
415 ### <!-- 1 -->🐛 Bug Fixes
416
417 - wasm build failure due to a missing use statement ([#313](https://github.com/zip-rs/zip2/pull/313))
418
419 ## [2.3.0](https://github.com/zip-rs/zip2/compare/v2.2.3...v2.3.0) - 2025-03-16
420
421 ### <!-- 0 -->🚀 Features
422
423 - Add support for NTFS extra field ([#279](https://github.com/zip-rs/zip2/pull/279))
424
425 ### <!-- 1 -->🐛 Bug Fixes
426
427 - *(test)* Conditionalize a zip64 doctest ([#308](https://github.com/zip-rs/zip2/pull/308))
428 - fix failing tests, remove symlink loop check
429 - Canonicalize output path to avoid false negatives
430 - Symlink handling in stream extraction
431 - Canonicalize output paths and symlink targets, and ensure they descend from the destination ([CVE-2025-29787](https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8))
432
433 ### <!-- 7 -->⚙️ Miscellaneous Tasks
434
435 - Fix clippy and cargo fmt warnings ([#310](https://github.com/zip-rs/zip2/pull/310))
436
437 ## [2.2.3](https://github.com/zip-rs/zip2/compare/v2.2.2...v2.2.3) - 2025-02-26
438
439 ### <!-- 2 -->🚜 Refactor
440
441 - Change the inner structure of `DateTime` ([#267](https://github.com/zip-rs/zip2/pull/267))
442
443 ### <!-- 7 -->⚙️ Miscellaneous Tasks
444
445 - cargo fix --edition
446
447 ## [2.2.2](https://github.com/zip-rs/zip2/compare/v2.2.1...v2.2.2) - 2024-12-16
448
449 ### <!-- 1 -->🐛 Bug Fixes
450
451 - rewrite the EOCD/EOCD64 detection to fix extreme performance regression ([#247](https://github.com/zip-rs/zip2/pull/247))
452
453 ## [2.2.1](https://github.com/zip-rs/zip2/compare/v2.2.0...v2.2.1) - 2024-11-20
454
455 ### <!-- 1 -->🐛 Bug Fixes
456
457 - remove executable bit ([#238](https://github.com/zip-rs/zip2/pull/238))
458 - *(lzma)* fixed panic in case of invalid lzma stream ([#259](https://github.com/zip-rs/zip2/pull/259))
459 - resolve new clippy warnings on nightly ([#262](https://github.com/zip-rs/zip2/pull/262))
460 - resolve clippy warning in nightly ([#252](https://github.com/zip-rs/zip2/pull/252))
461
462 ### <!-- 4 -->⚡ Performance
463
464 - Faster cde rejection ([#255](https://github.com/zip-rs/zip2/pull/255))
465
466 ## [2.2.0](https://github.com/zip-rs/zip2/compare/v2.1.6...v2.2.0) - 2024-08-11
467
468 ### <!-- 0 -->🚀 Features
469 - Expose `ZipArchive::central_directory_start` ([#232](https://github.com/zip-rs/zip2/pull/232))
470
471 ## [2.1.6](https://github.com/zip-rs/zip2/compare/v2.1.5...v2.1.6) - 2024-07-29
472
473 ### <!-- 1 -->🐛 Bug Fixes
474 - ([#33](https://github.com/zip-rs/zip2/pull/33)) Rare combination of settings could lead to writing a corrupt archive with overlength extra data, and data_start locations when reading the archive back were also wrong ([#221](https://github.com/zip-rs/zip2/pull/221))
475
476 ### <!-- 2 -->🚜 Refactor
477 - Eliminate some magic numbers and unnecessary path prefixes ([#225](https://github.com/zip-rs/zip2/pull/225))
478
479 ## [2.1.5](https://github.com/zip-rs/zip2/compare/v2.1.4...v2.1.5) - 2024-07-20
480
481 ### <!-- 2 -->🚜 Refactor
482 - change invalid_state() return type to io::Result<T>
483
484 ## [2.1.4](https://github.com/zip-rs/zip2/compare/v2.1.3...v2.1.4) - 2024-07-18
485
486 ### <!-- 1 -->🐛 Bug Fixes
487 - fix([#215](https://github.com/zip-rs/zip2/pull/215)): Upgrade to deflate64 0.1.9
488 - Panic when reading a file truncated in the middle of an XZ block header
489 - Some archives with over u16::MAX files were handled incorrectly or slowly ([#189](https://github.com/zip-rs/zip2/pull/189))
490 - Check number of files when deciding whether a CDE is the real one
491 - Could still select a fake CDE over a real one in some cases
492 - May have to consider multiple CDEs before filtering for validity
493 - We now keep searching for a real CDE header after read an invalid one from the file comment
494 - Always search for data start when opening an archive for append, and reject the header if data appears to start after central directory
495 - `deep_copy_file` no longer allows overwriting an existing file, to match the behavior of `shallow_copy_file`
496 - File start position was wrong when extra data was present
497 - Abort file if central extra data is too large
498 - Overflow panic when central directory extra data is too large
499 - ZIP64 header was being written twice when copying a file
500 - ZIP64 header was being written to central header twice
501 - Start position was incorrect when file had no extra data
502 - Allow all reserved headers we can create
503 - Fix a bug where alignment padding interacts with other extra-data fields
504 - Fix bugs involving alignment padding and Unicode extra fields
505 - Incorrect header when adding AES-encrypted files
506 - Parse the extra field and reject it if invalid
507 - Incorrect behavior following a rare combination of `merge_archive`, `abort_file` and `deep_copy_file`. As well, we now return an error when a file is being copied to itself.
508 - path_to_string now properly handles the case of an empty path
509 - Implement `Debug` for `ZipWriter` even when it's not implemented for the inner writer's type
510 - Fix an issue where the central directory could be incorrectly detected
511 - `finish_into_readable()` would corrupt the archive if the central directory had moved
512
513 ### <!-- 2 -->🚜 Refactor
514 - Verify with debug assertions that no FixedSizeBlock expects a multi-byte alignment ([#198](https://github.com/zip-rs/zip2/pull/198))
515 - Use new do_or_abort_file method
516
517 ### <!-- 4 -->⚡ Performance
518 - Speed up CRC when encrypting small files
519 - Limit the number of extra fields
520 - Refactor extra-data validation
521 - Store extra data in plain vectors until after validation
522 - Only build one IndexMap after choosing among the possible valid headers
523 - Simplify validation of empty extra-data fields
524 - Validate automatic extra-data fields only once, even if several are present
525 - Remove redundant `validate_extra_data()` call
526 - Skip searching for the ZIP32 header if a valid ZIP64 header is present ([#189](https://github.com/zip-rs/zip2/pull/189))
527
528 ### <!-- 7 -->⚙️ Miscellaneous Tasks
529 - Fix a bug introduced by c934c824
530 - Fix a failing unit test
531 - Fix build errors on older Rust versions
532 - Fix build
533 - Fix another fuzz failure
534 - Switch to `ok_or_abort_file`, and inline when that fails borrow checker
535 - Switch to `ok_or_abort_file`, and inline when that fails borrow checker
536 - Fix a build error
537 - Fix boxed_local warning (can borrow instead)
538 - Partial debug
539 - Fix more errors when parsing multiple extra fields
540 - Fix an error when decoding AES header
541 - Fix an error caused by not allowing 0xa11e field
542 - Bug fix: crypto_header was being counted toward extra_data_end
543 - Bug fix: revert a change where crypto_header was incorrectly treated as an extra field
544 - Fix a bug where a modulo of 0 was used
545 - Fix a bug when ZipCrypto, alignment *and* a custom header are used
546 - Fix a bug when both ZipCrypto and alignment are used
547 - Fix another bug: header_end vs extra_data_end
548 - Fix use of a stale value in a `debug_assert_eq!`
549 - Fix: may still get an incorrect size if opening an invalid file for append
550 - Fix: may need the absolute start as tiebreaker to ensure deterministic behavior
551
552 ## [2.1.3](https://github.com/zip-rs/zip2/compare/v2.1.2...v2.1.3) - 2024-06-04
553
554 ### <!-- 1 -->🐛 Bug Fixes
555 - Some date/time filters were previously unreliable (i.e. later-pass filters had no earliest-pass or latest-fail, and vice-versa)
556 - Decode Zip-Info UTF8 name and comment fields ([#159](https://github.com/zip-rs/zip2/pull/159))
557
558 ### <!-- 2 -->🚜 Refactor
559 - Return extended timestamp fields copied rather than borrowed ([#183](https://github.com/zip-rs/zip2/pull/183))
560
561 ### <!-- 7 -->⚙️ Miscellaneous Tasks
562 - Fix a new Clippy warning
563 - Fix a bug and inline `deserialize` for safety
564 - Add check for wrong-length blocks, and incorporate fixed-size requirement into the trait name
565 - Fix a fuzz failure by using checked_sub
566 - Add feature gate for new unit test
567
568 ## [2.1.1](https://github.com/zip-rs/zip2/compare/v2.1.0...v2.1.1) - 2024-05-28
569
570 ### <!-- 1 -->🐛 Bug Fixes
571 - Derive `Debug` for `ZipWriter`
572 - lower default version to 4.5 and use the version-needed-to-extract where feasible.
573
574 ### <!-- 2 -->🚜 Refactor
575 - use a MIN_VERSION constant
576
577 ### <!-- 7 -->⚙️ Miscellaneous Tasks
578 - Bug fixes for debug implementation
579 - Bug fixes for debug implementation
580 - Update unit tests
581 - Remove unused import
582
583 ## [2.1.0](https://github.com/zip-rs/zip2/compare/v2.0.0...v2.1.0) - 2024-05-25
584
585 ### <!-- 0 -->🚀 Features
586 - Support mutual conversion between `DateTime` and MS-DOS pair
587
588 ### <!-- 1 -->🐛 Bug Fixes
589 - version-needed-to-extract was incorrect in central header, and version-made-by could be lower than that ([#100](https://github.com/zip-rs/zip2/pull/100))
590 - version-needed-to-extract was incorrect in central header, and version-made-by could be lower than that ([#100](https://github.com/zip-rs/zip2/pull/100))
591
592 ### <!-- 7 -->⚙️ Miscellaneous Tasks
593 - Another tweak to ensure `version_needed` is applied
594 - Tweaks to make `version_needed` and `version_made_by` work with recently-merged changes
595
596 ## [2.0.0](https://github.com/zip-rs/zip2/compare/v1.3.1...v2.0.0) - 2024-05-24
597
598 ### <!-- 0 -->🚀 Features
599 - Add `fmt::Display` for `DateTime`
600 - Implement more traits for `DateTime`
601
602 ### <!-- 2 -->🚜 Refactor
603 - Change type of `last_modified_time` to `Option<DateTime>`
604 - [**breaking**] Rename `from_msdos` to `from_msdos_unchecked`, make it unsafe, and add `try_from_msdos` ([#145](https://github.com/zip-rs/zip2/pull/145))
605
606 ### <!-- 7 -->⚙️ Miscellaneous Tasks
607 - Continue to accept archives with invalid DateTime, and use `now_utc()` as default only when writing, not reading
608
609 ## [1.3.1](https://github.com/zip-rs/zip2/compare/v1.3.0...v1.3.1) - 2024-05-21
610
611 ### <!-- 2 -->🚜 Refactor
612 - Make `deflate` enable both default implementations
613 - Merge the hidden deflate-flate2 flag into the public one
614 - Rename _deflate-non-zopfli to _deflate-flate2
615 - Reject encrypted and using_data_descriptor files slightly faster in read_zipfile_from_stream
616 - Convert `impl TryInto<NaiveDateTime> for DateTime` to `impl TryFrom<DateTime> for NaiveDateTime` ([#136](https://github.com/zip-rs/zip2/pull/136))
617
618 ### <!-- 4 -->⚡ Performance
619 - Change default compression implementation to `flate2/zlib-ng`
620
621 ### <!-- 7 -->⚙️ Miscellaneous Tasks
622 - chore([#132](https://github.com/zip-rs/zip2/pull/132)): Attribution for some copied test data
623 - chore([#133](https://github.com/zip-rs/zip2/pull/133)): chmod -x src/result.rs
624
625 ## [1.3.0](https://github.com/zip-rs/zip2/compare/v1.2.3...v1.3.0) - 2024-05-17
626
627 ### <!-- 0 -->🚀 Features
628 - Add `is_symlink` method
629
630 ### <!-- 1 -->🐛 Bug Fixes
631 - Extract symlinks into symlinks on Unix and Windows, and fix a bug that affected making directories writable on MacOS
632
633 ### <!-- 2 -->🚜 Refactor
634 - Eliminate deprecation warning when `--all-features` implicitly enables the deprecated feature
635 - Check if archive contains a symlink's target, without borrowing both at the same time
636 - Eliminate a clone that's no longer necessary
637 - is_dir only needs to look at the filename
638 - Remove unnecessary #[cfg] attributes
639
640 ### <!-- 7 -->⚙️ Miscellaneous Tasks
641 - Fix borrow-of-moved-value
642 - Box<str> doesn't directly convert to PathBuf, so convert back to String first
643 - partial revert - only &str has chars(), but Box<str> should auto-deref
644 - contains_key needs a `Box<str>`, so generify `is_dir` to accept one
645 - Add missing `ZipFileData::is_dir()` method
646 - Fix another Windows-specific error
647 - More bug fixes for Windows-specific symlink code
648 - More bug fixes for Windows-specific symlink code
649 - Bug fix: variable name change
650 - Bug fix: need both internal and output path to determine whether to symlink_dir
651 - Another bug fix
652 - Fix another error-type conversion error
653 - Fix error-type conversion on Windows
654 - Fix conditionally-unused import
655 - Fix continued issues, and factor out the Vec<u8>-to-OsString conversion (cc: [#125](https://github.com/zip-rs/zip2/pull/125))
656 - Fix CI failure involving conversion to OsString for symlinks (see my comments on [#125](https://github.com/zip-rs/zip2/pull/125))
657 - Move path join into platform-independent code
658
659 ## [1.2.3](https://github.com/zip-rs/zip2/compare/v1.2.2...v1.2.3) - 2024-05-10
660
661 ### <!-- 1 -->🐛 Bug Fixes
662 - Remove a window when an extracted directory might be unexpectedly listable and/or `cd`able by non-owners
663 - Extract directory contents on Unix even if the directory doesn't have write permission (https://github.com/zip-rs/zip-old/issues/423)
664
665 ### <!-- 7 -->⚙️ Miscellaneous Tasks
666 - More conditionally-unused imports
667
668 ## [1.2.2](https://github.com/zip-rs/zip2/compare/v1.2.1...v1.2.2) - 2024-05-09
669
670 ### <!-- 1 -->🐛 Bug Fixes
671 - Failed to clear "writing_raw" before finishing a symlink, leading to dropped extra fields
672
673 ### <!-- 4 -->⚡ Performance
674 - Use boxed slice for archive comment, since it can't be concatenated
675 - Optimize for the fact that false signatures can't overlap with real ones
676
677 ## [1.2.1](https://github.com/zip-rs/zip2/compare/v1.2.0...v1.2.1) - 2024-05-06
678
679 ### <!-- 1 -->🐛 Bug Fixes
680 - Prevent panic when trying to read a file with an unsupported compression method
681 - Prevent panic after reading an invalid LZMA file
682 - Make `Stored` the default compression method if `Deflated` isn't available, so that zip files are readable by as much software as possible
683 - version_needed was wrong when e.g. cfg(bzip2) but current file wasn't bzip2 ([#100](https://github.com/zip-rs/zip2/pull/100))
684 - file paths shouldn't start with slashes ([#102](https://github.com/zip-rs/zip2/pull/102))
685
686 ### <!-- 2 -->🚜 Refactor
687 - Overhaul `impl Arbitrary for FileOptions`
688 - Remove unused `atomic` module
689
690 ## [1.2.0](https://github.com/zip-rs/zip2/compare/v1.1.4...v1.2.0) - 2024-05-06
691
692 ### <!-- 0 -->🚀 Features
693 - Add method `decompressed_size()` so non-recursive ZIP bombs can be detected
694
695 ### <!-- 2 -->🚜 Refactor
696 - Make `ZipWriter::finish()` consume the `ZipWriter`
697
698 ### <!-- 7 -->⚙️ Miscellaneous Tasks
699 - Use panic! rather than abort to ensure the fuzz harness can process the failure
700 - Update fuzz_write to use replace_with
701 - Remove a drop that can no longer be explicit
702 - Add `#![allow(unexpected_cfgs)]` in nightly
703
704 ## [1.1.4](https://github.com/zip-rs/zip2/compare/v1.1.3...v1.1.4) - 2024-05-04
705
706 ### <!-- 1 -->🐛 Bug Fixes
707 - Build was failing with bzip2 enabled
708 - use is_dir in more places where Windows paths might be handled incorrectly
709
710 ### <!-- 4 -->⚡ Performance
711 - Quick filter for paths that contain "/../" or "/./" or start with "./" or "../"
712 - Fast handling for separator-free paths
713 - Speed up logic if main separator isn't '/'
714 - Drop `normalized_components` slightly sooner when not using it
715 - Speed up `path_to_string` in cases where the path is already in the proper format
716
717 ### <!-- 7 -->⚙️ Miscellaneous Tasks
718 - Refactor: can short-circuit handling of paths that start with MAIN_SEPARATOR, no matter what MAIN_SEPARATOR is
719 - Bug fix: non-canonical path detection when MAIN_SEPARATOR is not slash or occurs twice in a row
720 - Bug fix: must recreate if . or .. is a path element
721 - Bug fix
722
723 ### <!-- 9 -->◀️ Revert
724 - [#58](https://github.com/zip-rs/zip2/pull/58) (partial): `bzip2-rs` can't replace `bzip2` because it's decompress-only
725
726 ## [1.1.3](https://github.com/zip-rs/zip2/compare/v1.1.2...v1.1.3) - 2024-04-30
727
728 ### <!-- 1 -->🐛 Bug Fixes
729 - Rare bug where find_and_parse would give up prematurely on detecting a false end-of-CDR header
730
731 ## [1.1.2](https://github.com/zip-rs/zip2/compare/v1.1.1...v1.1.2) - 2024-04-28
732
733 ### <!-- 1 -->🐛 Bug Fixes
734 - Alignment was previously handled incorrectly ([#33](https://github.com/Pr0methean/zip/pull/33))
735
736 ### <!-- 2 -->🚜 Refactor
737 - deprecate `deflate-miniz` feature since it's now equivalent to `deflate` ([#35](https://github.com/Pr0methean/zip/pull/35))
738
739 ## [1.1.1]
740
741 ### Added
742
743 - `index_for_name`, `index_for_path`, `name_for_index`: get the index of a file given its path or vice-versa, without
744 initializing metadata from the local-file header or needing to mutably borrow the `ZipArchive`.
745 - `add_symlink_from_path`, `shallow_copy_file_from_path`, `deep_copy_file_from_path`, `raw_copy_file_to_path`: copy a
746 file or create a symlink using `AsRef<Path>` arguments
747
748 ### Changed
749
750 - `add_directory_from_path` and `start_file_from_path` are no longer deprecated, and they now normalize `..` as well as
751 `.`.
752
753 ## [1.1.0]
754
755 ### Added
756
757 - Support for decoding LZMA.
758
759 ### Changed
760
761 - Eliminated a custom `AtomicU64` type by replacing it with `OnceLock` in the only place it's used.
762 - `FileOptions` now has the subtype `SimpleFileOptions` which implements `Copy` but has no extra data.
763
764 ## [1.0.1]
765
766 ### Changed
767
768 - The published package on crates.io no longer includes the tests or examples.
769
770 ## [1.0.0]
771
772 ### Changed
773
774 - Now uses boxed slices rather than `String` or `Vec` for metadata fields that aren't likely to grow.
775
776 ## [0.11.0]
777
778 ### Added
779
780 - Support for `DEFLATE64` (decompression only).
781 - Support for Zopfli compression levels up to `i64::MAX`.
782
783 ### Changed
784
785 - `InvalidPassword` is now a kind of `ZipError` to eliminate the need for nested `Result` structs.
786 - Updated dependencies.
787
788 ## [0.10.3]
789
790 ### Changed
791
792 - Updated dependencies.
793 - MSRV increased to `1.67`.
794
795 ### Fixed
796
797 - Fixed some rare bugs that could cause panics when trying to read an invalid ZIP file or using an incorrect password.
798
799 ## [0.10.2]
800
801 ### Changed
802
803 - Where possible, methods are now `const`. This improves performance, especially when reading.
804
805 ## [0.10.1]
806
807 ### Changed
808
809 - Date and time conversion methods now return `DateTimeRangeError` rather than `()` on error.
810
811 ## [0.10.0]
812
813 ### Changed
814
815 - Replaces the `flush_on_finish_file` parameter of `ZipWriter::new` and `ZipWriter::Append` with
816 a `set_flush_on_finish_file` method.
817
818 ### Fixed
819
820 - Fixes build errors that occur when all default features are disabled.
821 - Fixes more cases of a bug when ZIP64 magic bytes occur in filenames.
822
823 ## [0.9.2]
824
825 ### Added
826
827 - `zlib-ng` for fast Deflate compression. This is now the default for compression levels 0-9.
828 - `chrono` to convert zip::DateTime to and from chrono::NaiveDateTime
829
830 ## [0.9.1]
831
832 ### Added
833
834 - Zopfli for aggressive Deflate compression.
835
836 ## [0.9.0]
837
838 ### Added
839
840 - `flush_on_finish_file` parameter for `ZipWriter`.
841
842 ## [0.8.3]
843
844 ### Changed
845
846 - Uses the `aes::cipher::KeyInit` trait from `aes` 0.8.2 where appropriate.
847
848 ### Fixed
849
850 - Calling `abort_file()` no longer corrupts the archive if called on a
851 shallow copy of a remaining file, or on an archive whose CDR entries are out
852 of sequence. However, it may leave an unused entry in the archive.
853 - Calling `abort_file()` while writing a ZipCrypto-encrypted file no longer
854 causes a crash.
855 - Calling `abort_file()` on the last file before `finish()` no longer produces
856 an invalid ZIP file or garbage in the comment.
857
858 ### Added
859
860 - `ZipWriter` methods `get_comment()` and `get_raw_comment()`.
861
862 ## [0.8.2]
863
864 ### Fixed
865
866 - Fixed an issue where code might spuriously fail during write fuzzing.
867
868 ### Added
869
870 - New method `with_alignment` on `FileOptions`.
871
872 ## [0.8.1]
873
874 ### Fixed
875
876 - `ZipWriter` now once again implements `Send` if the underlying writer does.
877
878 ## [0.8.0]
879
880 ### Deleted
881
882 - Methods `start_file_aligned`, `start_file_with_extra_data`, `end_local_start_central_extra_data` and
883 `end_extra_data` (see below).
884
885 ### Changed
886
887 - Alignment and extra-data fields are now attributes of [`zip::unstable::write::FileOptions`], allowing them to be
888 specified for `add_directory` and `add_symlink`.
889 - Extra-data fields are now formatted by the `FileOptions` method `add_extra_data`.
890 - Improved performance, especially for `shallow_copy_file` and `deep_copy_file` on files with extra data.
891
892 ### Fixed
893
894 - Fixes a rare bug where the size of the extra-data field could overflow when `large_file` was set.
895 - Fixes more cases of a bug when ZIP64 magic bytes occur in filenames.
896
897 ## [0.7.5]
898
899 ### Fixed
900
901 - Fixed a bug that occurs when ZIP64 magic bytes occur twice in a filename or across two filenames.
902
903 ## [0.7.4]
904
905 ### Added
906
907 - Added experimental [`zip::unstable::write::FileOptions::with_deprecated_encryption`] API to enable encrypting
908 files with PKWARE encryption.
909
910 ## [0.7.3]
911
912 ### Fixed
913
914 - Fixed a bug that occurs when a filename in a ZIP32 file includes the ZIP64 magic bytes.
915
916 ## [0.7.2]
917
918 ### Added
919
920 - Method `abort_file` - removes the current or most recently-finished file from the archive.
921
922 ### Fixed
923
924 - Fixed a bug where a file could remain open for writing after validations failed.
925
926 ## [0.7.1]
927
928 ### Changed
929
930 - Bumped the version number in order to upload an updated README to crates.io.
931
932 ## [0.7.0]
933
934 ### Fixed
935
936 - Calling `start_file` with invalid parameters no longer closes the `ZipWriter`.
937 - Attempting to write a 4GiB file without calling `FileOptions::large_file(true)` now removes the file from the archive
938 but does not close the `ZipWriter`.
939 - Attempting to write a file with an unrepresentable or invalid last-modified date will instead add it with a date of
940 1980-01-01 00:00:00.
941
942 ### Added
943
944 - Method `is_writing_file` - indicates whether a file is open for writing.
945
946 ## [0.6.13]
947
948 ### Fixed
949
950 - Fixed a possible bug in deep_copy_file.
951
952 ## [0.6.12]
953
954 ### Fixed
955
956 - Fixed a Clippy warning that was missed during the last release.
957
958 ## [0.6.11]
959
960 ### Fixed
961
962 - Fixed a bug that could cause later writes to fail after a `deep_copy_file` call.
963
964 ## [0.6.10]
965
966 ### Changed
967
968 - Updated dependency versions.
969
970 ## [0.6.9]
971
972 ### Fixed
973
974 - Fixed an issue that prevented `ZipWriter` from implementing `Send`.
975
976 ## [0.6.8]
977
978 ### Added
979
980 - Detects duplicate filenames.
981
982 ### Fixed
983
984 - `deep_copy_file` could set incorrect Unix permissions.
985 - `deep_copy_file` could handle files incorrectly if their compressed size was u32::MAX bytes or less but their
986 uncompressed size was not.
987 - Documented that `deep_copy_file` does not copy a directory's contents.
988
989 ### Changed
990
991 - Improved performance of `deep_copy_file` by using a HashMap and eliminating a redundant search.
992
993 ## [0.6.7]
994
995 ### Added
996
997 - `deep_copy_file` method: more standards-compliant way to copy a file from within the ZipWriter
998
999 ## [0.6.6]
1000
1001 ### Fixed
1002
1003 - Unused flag `#![feature(read_buf)]` was breaking compatibility with stable compiler.
1004
1005 ### Changed
1006
1007 - Updated `aes` dependency to `0.8.2` (https://github.com/zip-rs/zip/pull/354)
1008 - Updated other dependency versions.
1009
1010 ## [0.6.5]
1011 ### Changed
1012
1013 - Added experimental [`zip::unstable::write::FileOptions::with_deprecated_encryption`] API to enable encrypting files with PKWARE encryption.
1014
1015 ### Added
1016
1017 - `shallow_copy_file` method: copy a file from within the ZipWriter
1018
1019
1020 ## [0.6.4]
1021
1022 ### Changed
1023
1024 - [#333](https://github.com/zip-rs/zip/pull/333): disabled the default features of the `time` dependency, and also `formatting` and `macros`, as they were enabled by mistake.
1025 - Deprecated [`DateTime::from_time`](https://docs.rs/zip/0.6/zip/struct.DateTime.html#method.from_time) in favor of [`DateTime::try_from`](https://docs.rs/zip/0.6/zip/struct.DateTime.html#impl-TryFrom-for-DateTime)