Mathijs van de Nes
86d9d20884
Calculate data_start after parse_extra_field
...
Some extra fields may alter offsets, e.g. Zip64.
2018-06-17 15:23:19 +02:00
Mathijs van de Nes
d2ccfc16f7
Speed up Drop of ZipFileReader
...
Skip CRC and decompression when dropping an owned ZipFileReader
2018-06-17 15:16:14 +02:00
Mathijs van de Nes
38d1699853
Improve reading from non-seekable streams
...
You can now repeatedly call a function to iterate over all files in a
zip. This may give some suboptimal results, but is useful when dealing
with an incoming data stream.
2018-06-16 14:14:34 +02:00
Mathijs van de Nes
5b17e07086
Merge branch 'sequential-read' of https://github.com/FauxFaux/zip-rs into FauxFaux-sequential-read
2018-06-15 16:59:09 +02:00
Mathijs van de Nes
f502a7acf3
Update README for new version
2018-05-27 10:36:30 +02:00
Mathijs van de Nes
2212ca1476
New point release 0.4.0
...
The feature flags have been changed to allow better control over the
deflate implementation.
2018-05-27 10:34:21 +02:00
Mathijs van de Nes
39ccaab76c
Merge branch 'flate2-backends' of https://github.com/alexbool/zip-rs
2018-05-27 10:33:52 +02:00
Mathijs van de Nes
1cb79a0b91
Fix memory issues on corrupt zip files
...
Do not pre-allocate the number of files, as this might be an invalid
number.
Also give a more helpfull error message when the start of the central
directory could not be found.
Resolves #68
2018-05-23 19:43:46 +02:00
Mathijs van de Nes
00310c44d8
Expose zip file comment in ZipArchive
...
Resolves #71
2018-05-23 19:17:06 +02:00
Mathijs van de Nes
362f12dc9b
Bump version
2018-05-22 23:37:19 +02:00
Mathijs van de Nes
602952750e
Update DEFAULT_VERSION
...
Use a more sane 'version made by' as we can write Bzip2 files
2018-05-22 23:36:56 +02:00
Mathijs van de Nes
ab9667aa5c
Properly write 'version needed' in local file header
...
'version made by' was used instead of version needed by accident.
Resolves #72
2018-05-22 23:36:56 +02:00
Alexander Bulaev
fee626ba59
Control backend choice of flate2
2018-05-19 20:03:23 +03:00
Mathijs van de Nes
806147ac9e
Fix sanitized_name test for Windows
2018-04-20 13:53:07 +02:00
Mathijs van de Nes
140021173a
Bump version
2018-04-20 13:42:05 +02:00
Mathijs van de Nes
5e8c95e6ed
Make santized_name part of the library
...
It is a common pitfall to use the name as-is during extraction. Adding
this function may prevent some of the issues.
Resolves #65
2018-04-20 13:35:20 +02:00
Mathijs van de Nes
ce4104d682
Merge pull request #63 from Songbird0/fix_walkdir_broken_link
...
Fix `walkdir` broken link.
2018-03-01 21:58:31 +01:00
Songbird0
44ec82e746
Fix walkdir
broken link.
...
You used a relative path to reference `walkdir` repository, but github starts at your repository URL.
- Old broken link: `https://github.com/mvdnes/zip-rs/blob/master/BurntSushi/walkdir `;
- New link: `https://github.com/BurntSushi/walkdir `.
2018-02-28 20:24:48 +01:00
Mathijs van de Nes
34b7502a7d
Bump version and update README
2018-02-17 20:11:59 +01:00
Mathijs van de Nes
fce3836059
Better handling of zips with invalid datetimes
...
The msdos datetime 0x00000000 is invalid. The Windows API would
(rightfully) return an ERROR_INVALID_PARAMETER for this when converting
it. If it is indeed an invalid error, we now return the zip datetime
'epoch' of 1980-01-01 00:00:00.
Resolves issue #61
2018-02-17 20:05:09 +01:00
Mathijs van de Nes
e8c6a07790
Merge pull request #59 from gilescope/master
...
Improvements to zip dir example
2018-01-27 13:24:23 +01:00
Giles Cope
da68a33c80
Updated readme to indicate existence of examples dir. Generalised zip dir example so people could use it also to write to an memory buffer rather than a file. Ideally I'd have the zip dir functionaility in the crate but I can see the need to minimise dependencies.
2018-01-27 06:21:57 +00:00
Mathijs van de Nes
02b80d2040
Publish 0.3.0 due to breaking changes
...
The change of default features may brake some projects.
2018-01-15 18:51:03 +01:00
Mathijs van de Nes
5cbdf56c4d
Bump version
2018-01-09 18:43:37 +01:00
Mathijs van de Nes
b2db9d55ae
Merge branch 'deflate_feature' of https://github.com/jhwgh1968/zip-rs
2018-01-09 18:38:27 +01:00
Mathijs van de Nes
6a31154681
Update README and bump version
2018-01-09 17:59:53 +01:00
Mathijs van de Nes
3e237d8e76
Merge branch 'dbrgn-ascii-ext-import'
2018-01-09 17:57:54 +01:00
Danilo Bargen
3f7409e4a8
Add lowest working Rust version to Travis
2018-01-08 08:31:53 +01:00
Danilo Bargen
2469419a89
Fix compatibility with Rust <1.23
2018-01-08 08:26:49 +01:00
jhwgh1968
7c2d4e2901
Named the deflate algorithm feature gate "deflate"
2018-01-07 13:39:42 -06:00
jhwgh1968
19274b497a
Made deflate compression into separate feature
2018-01-07 00:47:11 -06:00
Mathijs van de Nes
f2e5cad539
Typo
2018-01-06 14:17:02 +01:00
Mathijs van de Nes
5ad8752ce3
Use mingw-w64 when needed in appveyor
2018-01-06 13:50:01 +01:00
Mathijs van de Nes
f01ea3dbd8
Next Appveyor attempt
2018-01-06 12:33:16 +01:00
Mathijs van de Nes
24478902a0
Attempt to fix GCC for appveyor
2018-01-06 12:18:42 +01:00
Mathijs van de Nes
6808962143
Bump version
2018-01-06 12:06:58 +01:00
Mathijs van de Nes
bbb279286a
Remove unused import
2018-01-06 12:06:23 +01:00
Mathijs van de Nes
c09daf3bba
Modernize appveyor script
...
Old version did not use newer stable rust than 1.16
2018-01-06 12:01:03 +01:00
Mathijs van de Nes
50b57f4e37
Always use rust backend of flate2
...
Also fixes compiling with --no-default-features
2018-01-06 11:44:28 +01:00
Mathijs van de Nes
30236e9a5c
Merge branch 'rardiol-flate2'
2018-01-06 11:43:30 +01:00
rardiol
22194687c6
use flate2 1.0
2018-01-01 17:12:41 -03:00
Bob Sun
c7e4ac0c2f
Provide the rust_backend feature
2018-01-01 17:10:59 -03:00
Mathijs van de Nes
79adef3b6e
Merge pull request #52 from anvie/master
...
Handle invalid zip header
2017-12-06 20:57:56 +01:00
Robin Syihab
c99d7c2758
Handle invalid zip header
2017-12-04 01:19:44 +07:00
Mathijs van de Nes
cb5a919a31
Merge branch 'biluohc-master'
2017-11-25 19:13:54 +01:00
biluohc
09f728e71a
fix output format style for examples/extract.rs
2017-10-28 23:48:02 +08:00
biluohc
36146f0f2a
fix output format style for examples/extract.rs
2017-10-28 23:45:07 +08:00
biluohc
de8e31660b
Modify examples/extract.rs, reduce code.
2017-10-28 10:51:46 +08:00
Mathijs van de Nes
5719d687db
Bump version
2017-08-17 18:27:53 +02:00
Mathijs van de Nes
5b259dc12a
Merge branch 'pkgw-pr-basic-zip64'
2017-08-17 18:19:40 +02:00