Lireer
d7f0a182b6
Merge remote-tracking branch 'zip-rs/zip/master'
2022-01-25 17:48:45 +01:00
Marli Frost
f1074bc6a9
doc: remove re-exports section from crate root
...
Making the paths to the types private forces rustdoc to render
the structs inline in the crate root.
This is simpler to see when first reading the API doc
2022-01-23 21:45:41 +00:00
Alexander Zaitsev
5a4ca9557c
fix: permissions are not copied
...
- fix a small bug when permissions where not copied
- add must_use attribute to the all FileOptions methods
Tested:
- No
2022-01-23 20:16:01 +03:00
Alexander Zaitsev
63e714f622
Merge branch 'master' into feature/add_zstd_compression
2022-01-23 19:17:26 +03: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
Alexander Zaitsev
0b82d905b3
feat: add Zstandard compression
...
- add dependency on zstd crate
- add zstd feature to Cargo.toml
- update README
- update example with Zstd
- add Zstd support to the library
Notes:
- This work is mainly based on this original PR: https://github.com/zip-rs/zip/pull/240
Tested:
- During the development of the original PR
2022-01-23 14:49:48 +03:00
Steve Myers
2f71810c07
Upgrade time dependency to "0.3"
...
Versions of time crate prior to 0.2.23 fail audit due to RUSTSEC-2020-0071.
Crate: time
Version: 0.1.43
Title: Potential segfault in the time crate
Date: 2020-11-18
ID: RUSTSEC-2020-0071
URL: https://rustsec.org/advisories/RUSTSEC-2020-0071
Solution: Upgrade to >=0.2.23
2021-10-21 21:31:37 -07:00
Lireer
75e8f6bab5
use less feature gates if no further dependencies are needed
2021-08-06 12:38:04 +02:00
Lireer
48b52a7e86
move AesMode and AesVendorVersion out of aes-crypto feature
2021-08-05 21:16:11 +02:00
Lireer
354993d906
feature gate aes decryption
2021-08-05 21:06:47 +02:00
Lireer
852ab625fb
initial aes reader
2021-08-04 19:02:22 +02:00
Marli Frost
3fd44ffd5d
Merge pull request #200 from qu1x/support-extra-field
2021-05-11 11:18:17 +01:00
Benjamin Richner
80f4c43369
Add Info-ZIP password validation
2021-05-02 04:02:50 +02:00
Marli Frost
8ecbdb1870
chore: update to bzip 0.4
2021-04-19 12:29:19 +01:00
Marli Frost
44352aa34b
fix: allow non-utf8 comments in ZipWriter
2021-04-19 12:02:32 +01:00
zhanghar
32b2f5b483
refactor: use iterator for file list init
2021-02-25 23:54:20 -05:00
Rouven Spreckels
129d7301ef
Note that large_file()
requires ZIP64 support.
2021-02-07 12:46:52 +01:00
zhanghar
10da026ff6
feat: support append to an existing archive
2020-12-23 14:37:09 -05:00
Rouven Spreckels
425c54cd5f
Fix updating local ZIP64 extra field.
2020-11-18 16:27:28 +01: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
291e9491d5
Reserve all mapped extra data header IDs.
2020-10-08 10:11:52 +02:00
Rouven Spreckels
a74045654f
Close writer on error during write.
2020-10-07 10:07:26 +02:00
Rouven Spreckels
9397773a32
Add ZIP64 write support.
2020-10-03 11:05:23 +02:00
Rouven Spreckels
ba8307abc7
Improve extra field support.
...
- Switch to compression method only once as was before extra data
support allowing future encoders to do early writes when created.
- Reduce seeks by calculating offsets.
- Use `Stored` instead of feature dependent default for example.
There is a 2-byte pad length difference with deflate disabled.
2020-10-01 09:41:32 +02:00
Rouven Spreckels
d1d4326bff
Support aligned files.
2020-09-25 17:23:30 +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
f863497e9b
feat: expose the location of the central header
2020-09-10 09:34:24 +01:00
Marli Frost
54e532f26e
fix: arrays aren't io::Write
2020-08-19 13:36:17 +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
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
Jeremy Aube
d382f04e5a
Change default comment to String::new() and fixed tests
2020-06-21 12:38:36 -04: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
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
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
Manu Thambi
69ad3bd2a4
Enable reading/writing ZIP archive comment.
2020-01-09 11:58:35 -05: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
f9c2c64faa
Merge branch 'flate2' of https://github.com/jonpas/zip-rs
2019-08-14 20:40:00 +02:00
Michael Lamparski
907e13b5b6
impl Default for write::FileOptions
2019-07-22 13:24:34 -04:00