Commit graph

416 commits

Author SHA1 Message Date
Marli Frost
33cd959b11
docs: elaborate on purpose of crate 2020-08-19 13:33:37 +01:00
Marli Frost
4091167222
docs: simplify test 2020-08-19 13:29:39 +01:00
Marli Frost
33de808d0f
docs: use more descriptive langauge 2020-08-19 13:29:39 +01:00
Marli Frost
0e482afe2e
docs: the default comment was removed 2020-08-19 13:29:39 +01:00
Marli Frost
f86c310fdc
docs: deprecate Path handling methods
These methods were implemented in a non-intuitive way that could easily
lead to bugs. They may be replaced in a future release
2020-08-19 13:29:36 +01:00
Marli Frost
df8f377f92
docs: warn users about DateTime implementation 2020-08-19 12:21:48 +01:00
Marli Frost
f508aac0cd
docs: elaborate on usage of CompressionMethod 2020-08-19 12:20:43 +01:00
Davide Romanini
b91f48a224 fix fmt 2020-08-13 15:53:38 +02:00
Davide Romanini
5c4f0906f8 allow for garbage after comment data 2020-08-13 13:02:53 +02:00
nickbabcock
ef5ce23d85 Fix overflow in directory counts of ZIP64 files 2020-08-10 21:22:49 -05:00
Plecra
510f1cce7b
Merge pull request #116 from zacps/extract
Add function to extract a all files in an archive to a directory
2020-06-26 09:32:46 +01:00
Zac Pullar-Strecker
a3aac29e85 switch extract from dynamic to static dispatch 2020-06-26 10:53:57 +12:00
Zac Pullar-Strecker
080292c6c3 Add doc comment about extract bailing without cleanup 2020-06-24 10:16:27 +12:00
Benjamin Richner
0b077c4baf Fixed and improved docstrings, added module level documentation 2020-06-23 22:20:16 +02:00
Benjamin Richner
d4100190e5 run cargo fmt 2020-06-23 21:23:36 +02:00
Benjamin Richner
76777350da Add space between comment and // 2020-06-23 21:22:47 +02:00
Benjamin Richner
4f36a27c32 Use matcher clause instead of clumsy if expressions 2020-06-23 21:20:30 +02:00
Benjamin Richner
fb4f3c5c21 Rename by_name_internal to by_name_with_optional_password and by_index_internal to by_index_with_optional_password 2020-06-23 21:17:52 +02:00
Benjamin Richner
07caeca6ea Use let .. = &mut instead of let ref mut .. = 2020-06-23 21:12:36 +02:00
Benjamin Richner
d50dcaced7 run cargo fmt 2020-06-23 20:46:41 +02:00
Benjamin Richner
dbae003aca Merge improvements from master 2020-06-23 20:44:18 +02:00
Plecra
a43661c197
chore: apply formatting 2020-06-23 17:41:27 +01:00
Plecra
e123567862
Merge branch 'master' into any-flate2-backend 2020-06-23 16:51:15 +01:00
Marli Frost
2f0e14574e refactor: make crate 1.34.0 compatible 2020-06-23 16:21:10 +01:00
Marli Frost
6e652446dd feat: define the crate's MSRV 2020-06-23 15:48:50 +01:00
Jeremy Aube
d382f04e5a Change default comment to String::new() and fixed tests 2020-06-21 12:38:36 -04:00
Benjamin Richner
493afdbee1 run cargo fmt 2020-06-21 17:47:08 +02:00
Benjamin Richner
bd3ed222ac Merge improvements from master 2020-06-21 17:43:40 +02:00
Jeremy Aube
061a58cf7d Removed the default zip comment for ZipWriter to an empty string 2020-06-21 11:38:39 -04:00
Marli Frost
e8f576e179
chore: allow internal use of deprecated items 2020-06-17 18:20:40 +01:00
Marli Frost
548db12b07
docs: deprecate unnecessary API 2020-06-17 17:36:34 +01:00
Piotr Maks
d1bdd552e9 Enable deflated compression method for any flate2 backend
Allow using other than default flate2 backend for deflated compression 
method. The motivation for this change was to allow using different 
backends in dependent crates.
2020-06-17 07:23:32 +02:00
Marli Frost
9ed6904383
refactor: replace the podio crate with byteorder 2020-06-16 18:59:13 +01:00
Ryan Levick
5e76689f49 Don't run doc test since it will panic 2020-06-16 18:54:42 +02:00
Zac Pullar-Strecker
c074a3090c run rustfmt 2020-06-16 14:45:36 +12:00
Zac Pullar-Strecker
f04e4f4a04 Changes from review 2020-06-16 14:38:35 +12:00
Zac Pullar-Strecker
178699d2d5 Add function to extract a all files in an archive to a directory 2020-06-16 14:38:35 +12:00
Ryan Levick
96354ffa09 More cleanup 2020-06-15 18:09:10 +02:00
Ryan Levick
4e4bbef51b
Merge pull request #109 from JDepooter/add_header_start
Add ZipFile::header_start
2020-06-15 14:49:08 +02:00
Ryan Levick
44b67ff95d Run cargo fmt 2020-06-15 14:44:28 +02:00
Ryan Levick
0b6caba281
Merge branch 'master' into cleanup 2020-06-15 14:30:22 +02:00
Ryan Levick
cefa8cd2f2
Merge pull request #135 from stchris/use-thiserror
Use thiserror's Derive macro
2020-06-15 14:22:58 +02:00
Ryan Levick
31b4b5c842 Address clippy issues 2020-06-15 11:11:17 +02:00
Ryan Levick
ebb07348ee Run cargo fmt 2020-06-15 10:44:39 +02:00
Christian Stefanescu
18bece201c Use thiserror's Derive macro 2020-06-15 10:16:36 +02:00
Mathijs van de Nes
922b4926c3 Remove unused import 2020-06-13 17:26:13 +02:00
Benjamin Richner
f9116fc9c8 Clean up whitespaces 2020-05-21 22:14:53 +02:00
Benjamin Richner
cf7ff173b3 merge edition 2018 and other improvements from master 2020-05-21 21:58:38 +02:00
Zachary Dremann
b3c836d9c3 Ensure crc32 checksum is checked only at the end of the reader
The caller can pass in an empty slice for reading, which should return
`Ok(0)`, not raise an error about an invalid checksum prematurely
2020-05-15 17:11:49 -04:00
Zachary Dremann
2b50419947 Add some simple crc32 reader tests 2020-05-15 17:10:58 -04:00