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
Plecra
b36340e779
Merge pull request #141 from mvdnes/more-cleanup
...
More cleanup
2020-06-16 18:54:42 +01:00
Ryan Levick
5e76689f49
Don't run doc test since it will panic
2020-06-16 18:54:42 +02: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
039fc96078
Merge pull request #140 from mvdnes/github-actions
...
Move to GitHub Actions
2020-06-15 14:47:54 +02:00
Ryan Levick
44b67ff95d
Run cargo fmt
2020-06-15 14:44:28 +02:00
Ryan Levick
f78e651aa6
Move to GitHub Actions
2020-06-15 14:41:48 +02:00
Ryan Levick
7236347d8d
Merge pull request #139 from mvdnes/cleanup
...
Cleanup
2020-06-15 14:40:51 +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
82f5e2fbbe
Remove status warning in README
2020-06-15 11:12:53 +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
a973913ebd
Bump version
2020-06-13 17:26:28 +02:00
Mathijs van de Nes
922b4926c3
Remove unused import
2020-06-13 17:26:13 +02:00
Mathijs van de Nes
3e5a8e6f98
Merge branch 'Dr-Emann-crc_zero_sized_read'
2020-05-29 21:16:14 +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
Mathijs van de Nes
85153ecd4b
Bump version
2020-03-01 13:50:57 +01:00
Mathijs van de Nes
e485cbf576
Merge branch 'manuthambi-pull-request-file-names'
2020-01-25 15:44:03 +01: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
Mathijs van de Nes
80957e2db9
Merge branch 'tm_mon-bounds-fix' of https://github.com/johannesmaibaum/zip-rs
2020-01-11 13:12:04 +01:00
Mathijs van de Nes
14322823ee
Merge pull request #129 from manuthambi/pull-request-zip-comment
...
Enable reading/writing ZIP archive comment.
2020-01-11 12:48:11 +01:00
Manu Thambi
69ad3bd2a4
Enable reading/writing ZIP archive comment.
2020-01-09 11:58:35 -05:00
Mathijs van de Nes
59ef020918
Bump version
2020-01-06 22:28:38 +01:00
Mathijs van de Nes
a85e3eb809
Fix error checking tm_mon in time::Tm conversion
...
Fixes #128
2020-01-06 22:27:46 +01:00
Johannes Maibaum
b2a669bd33
Fix bounds check in DateTime::from_time()
...
`::time::Tm.tm_mon` has number range [0, 11], see:
https://docs.rs/time/0.1.42/time/struct.Tm.html#structfield.tm_mon
2020-01-03 10:04:58 +01:00
Johannes Maibaum
120732780f
Add bounds test for DateTime::from_time()
...
Fails for 1980-01-01 00:00:00.
2020-01-03 10:04:05 +01:00
Mathijs van de Nes
003440bfe3
Merge pull request #119 from rzip/edition-2018
...
Edition 2018
2019-11-24 10:49:45 +01:00
Lachezar Lechev
29517e9a6b
run cargo fix --edition-idioms
and manually fix other things
2019-11-11 09:20:31 +02:00
Lachezar Lechev
99dba6b397
run cargo fix --edition
2019-11-11 08:58:59 +02:00
Mathijs van de Nes
6fbcc33d82
Update README
...
Post a notice that this project will no longer be actively maintained.
2019-11-08 16:58:11 +01:00
Mathijs van de Nes
a872278429
Bump version
2019-08-14 20:47:45 +02:00
Mathijs van de Nes
f9c2c64faa
Merge branch 'flate2' of https://github.com/jonpas/zip-rs
2019-08-14 20:40:00 +02:00
Mathijs van de Nes
faa7aae4e2
Merge pull request #110 from exphp-forks/default-fileoptions
...
impl Default for write::FileOptions
2019-07-28 14:52:24 +02:00
Michael Lamparski
907e13b5b6
impl Default for write::FileOptions
2019-07-22 13:24:34 -04:00
Joel Depooter
cd867ecdc2
Add ZipFile::header_start
...
This function returns the offset of the local zip header for a ZipFile object
2019-07-02 16:27:45 -07:00
jonpas
c82a635c5c
Default deflate to flate2/rust_backend (miniz_oxide)
2019-06-20 16:29:16 +02:00
jonpas
c30d7c3d10
Remove _ - updated rustc
2019-06-18 12:32:44 +02:00
jonpas
14f77b390a
Use deflate as feature name
2019-06-17 21:36:38 +02:00
jonpas
b171b915f8
Switch to flate2
2019-06-14 15:25:00 +02:00
jonpas
6f9150d3dc
Fix compilation error
2019-06-14 15:02:41 +02: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
Mathijs van de Nes
57c8444d8e
Simplify test code of compression
2019-04-06 17:58:12 +02:00
Mathijs van de Nes
256da313b4
Remove warning
2019-04-06 17:23:57 +02:00
Mathijs van de Nes
e6a1c68a64
Update example to use new functionality
2019-04-06 17:19:18 +02:00
Mathijs van de Nes
2314abc307
Merge pull request #96 from damiencollard/file_and_dir_predicates
...
Add ZipFile::is_dir() and ZipFile::is_file().
2019-04-06 17:07:55 +02:00
Mathijs van de Nes
7b26b18b2f
Merge pull request #102 from jonpas/patch-1
...
Use add_directory in write_dir example
2019-04-06 16:54:32 +02:00