Commit graph

26 commits

Author SHA1 Message Date
Chris Hennick
cde5d5ed11
Implement shallow copy from within the file being written 2023-04-23 14:33:10 -07:00
Kyle Bloom
03f5009c34 fix: Clippy uninlined format args 2023-01-31 17:29:34 +00:00
Jack Fletcher
0330f4707b Update end to end methods import 2022-01-30 20:50:12 +00:00
Jack Fletcher
5aa0b601c9 Add expected data param to test fn check_archive_file 2022-01-27 00:51:19 +00:00
Jack Fletcher
4cb2067019 Update test helper function names 2022-01-27 00:12:17 +00:00
Jack Fletcher
161308c673 Add comments to test helpers 2022-01-26 23:47:40 +00:00
Jack Fletcher
6711ac91a8 Fix linter warnings 2022-01-26 22:21:17 +00:00
Jack Fletcher
6dcadff21d Add test changes from other branch 2022-01-24 20:32:22 +00:00
Alexander Zaitsev
e636399935 fix: fix all Clippy warnings
- some warnings are muted since fixing them right now can be a breaking
  API change
- fix Clippy warns in the src, examples and tests

Tested:
- Local test run
2022-01-23 18:54:43 +03:00
Alexander Zaitsev
061cdf149f fix: fix Clippy warnings
- fix a bunch of Clippy warnings
- fix some usages of assert! (change to assert_ne)

Tested:
- Local unit-tests run
2022-01-23 17:35:27 +03:00
Marli Frost
3fd44ffd5d
Merge pull request #200 from qu1x/support-extra-field 2021-05-11 11:18:17 +01:00
zhanghar
10da026ff6 feat: support append to an existing archive 2020-12-23 14:37:09 -05:00
Rouven Spreckels
d53c8bdf07 Merge branch 'master' into support-extra-field 2020-11-16 11:57:08 +01:00
Robert Marcano
5843d17d4c Add new APIs that allow copying zip file entries between zip files
The copy is done directly using the raw compressed data, avoiding
decompression and recompression.
2020-11-03 12:57:58 -04:00
Rouven Spreckels
9397773a32 Add ZIP64 write support. 2020-10-03 11:05:23 +02:00
Rouven Spreckels
365f139206 Use io::Write for extra field. 2020-09-18 16:15:41 +02:00
Rouven Spreckels
a191c4b435 Support extra field. 2020-09-16 13:59:43 +02:00
Marli Frost
2f0e14574e refactor: make crate 1.34.0 compatible 2020-06-23 16:21:10 +01:00
Ryan Levick
ebb07348ee Run cargo fmt 2020-06-15 10:44:39 +02:00
Manu Thambi
91c93579f2 Added ZipArchive::file_names() method to return an iterator of all the file names
in the archive.

Using ZipArchive::by_index() to obtain a list of files is slow, if the files are
not read, because it creates the decompressor internally before returning ZipFile.

Fixes #122
2020-01-14 09:58:12 -05:00
Lachezar Lechev
29517e9a6b
run cargo fix --edition-idioms and manually fix other things 2019-11-11 09:20:31 +02:00
Michael Lamparski
907e13b5b6 impl Default for write::FileOptions 2019-07-22 13:24:34 -04:00
Mathijs van de Nes
5d0f198124 Rename all tests in tests folder
Using the name 'main' was confusing
2019-04-06 17:59:04 +02:00
camchenry
59075de36a Revert to Vec<u8> owned by cursor 2018-10-15 12:06:54 -04:00
camchenry
19250df9e9 Change end-to-end test to use &[u8] instead of Vec<u8> 2018-10-13 18:40:06 -04:00
camchenry
a8b5210487 Add end-to-end test 2018-10-13 18:16:12 -04:00