Marli Frost
b080731c55
chore: rustfmt
2022-01-23 21:53:42 +00:00
Marli Frost
ae941ad256
doc: improve landing page
...
Explain more of what ZIP is intended for, and begin to explain
what the crate can be used for.
2022-01-23 21:46:17 +00: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
Marli Frost
0eea88d6c0
doc: more beginner-friendly DateTime
...
give more warnings about possible misuse of the type
2022-01-23 21:43:28 +00:00
Alexander Zaitsev
afc84af4aa
Merge pull request #250 from linkmauve/no-thiserror
...
Remove dependency on thiserror
2022-01-23 23:58:29 +03:00
Plecra
37fb0c5df1
Update Cargo.toml
2022-01-23 17:39:27 +00:00
Plecra
cfe3bbfa26
Merge branch 'master' into no-thiserror
2022-01-23 17:36:27 +00:00
Alexander Zaitsev
d6e0c7dc68
Merge pull request #264 from zip-rs/fix/issue_252
...
fix: permissions are not copied
2022-01-23 20:30:57 +03: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
f331802a57
Merge pull request #261 from zip-rs/feature/add_zstd_compression
...
feat: add Zstandard compression
2022-01-23 19:22:23 +03:00
Alexander Zaitsev
63e714f622
Merge branch 'master' into feature/add_zstd_compression
2022-01-23 19:17:26 +03:00
Alexander Zaitsev
2583740d03
Merge pull request #262 from zip-rs/fix/polishing
...
fix: fix Clippy warnings
2022-01-23 19:11:14 +03:00
Alexander Zaitsev
113afbeafe
fix: Clippy fix
...
- small Clippy fix from CI
Tested:
- No
2022-01-23 19:07:24 +03:00
Alexander Zaitsev
a5ae0bbe64
feat: add Clippy to CI
...
- enable Clippy on CI
Tested:
- No
2022-01-23 19:02:57 +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
f956a2eb85
doc: veeeery small fix to CoC
...
- remove extra new line at the beggining of the file
2022-01-23 17:35:39 +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
Alexander Zaitsev
82cb917883
Merge pull request #251 from linkmauve/use-getrandom
...
Use getrandom instead of rand for benches
2022-01-23 13:34:09 +03:00
Alexander Zaitsev
4e71934b88
Merge pull request #259 from zip-rs/fix/issue_234
...
fix: add header offset overflow check
2022-01-23 13:32:58 +03:00
Alexander Zaitsev
f69ac34045
Merge branch 'master' into use-getrandom
2022-01-23 02:46:40 +03:00
Alexander Zaitsev
b053eb0f2c
feat: add tests
...
- add tests for the large header
Tested:
- Local run
2022-01-23 02:43:04 +03:00
Alexander Zaitsev
6367be606e
Merge pull request #260 from zip-rs/fix/issue_219
...
fix: make zip-rs build on nightly compiler
2022-01-22 18:15:16 +03:00
Alexander Zaitsev
009d0cc0b4
fix: make zip-rs build on nightly compiler
...
- update dependencies for the compatibility with the nightly compiler
Tested:
- No
2022-01-22 17:59:25 +03:00
Alexander Zaitsev
8a666b102b
fix: add header offset overflow check
...
- during the header offset calculation, perform overflow check
Tested:
- Local tests
2022-01-22 17:56:13 +03:00
Alexander Zaitsev
06b41010ea
Merge pull request #258 from zip-rs/feature/bump_msrv
...
feat: bump MSRV
2022-01-22 16:50:44 +03:00
Alexander Zaitsev
4a50d24b4d
Merge remote-tracking branch 'origin/master' into feature/bump_msrv
2022-01-22 16:33:05 +03:00
Alexander Zaitsev
17b96ec732
Merge pull request #254 from notmandatory/update_time
...
Upgrade time dependency to "0.3"
2022-01-22 16:30:57 +03:00
Alexander Zaitsev
2f1630e2b2
feat: bump MSRV
...
- update MSRV to 1.54 according to the policy. Seems like it needed for
building dependencies properly
- update CI
Tested:
- No
2022-01-22 15:25:35 +03:00
Alexander Zaitsev
1b6293eee2
Merge pull request #244 from striezel/rand-0.8
...
chore: bump rand to 0.8
2022-01-22 14:06:28 +03:00
Steve Myers
0ee34bd105
Bump MSRV to 1.52.0 and fix cargo fmt and doc
2021-10-25 10:31:46 -07: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
Emmanuel Gil Peyrot
b031ab75bd
Use getrandom instead of rand for benches
...
The current code didn’t build, and this one includes fewer dependencies
than the full rand set of crates.
2021-09-06 23:42:14 +02:00
Emmanuel Gil Peyrot
70696f57c1
Remove dependency on thiserror
...
On my computer, this halves the total build time from 11.7s to 5.4s, as
well as the total size of the artifacts in target.
This derive macro is nice, but it doesn’t justify the increase in
compilation time for dependent crates imo.
This effectively reverts #135 , although using the up to date APIs from
std::error::Error.
2021-09-06 23:35:57 +02:00
Dirk Stolle
66d0283254
chore: bump rand to 0.8
...
The Minimum Supported Rust Version of rand 0.8 is 1.36, which is
exactly the MSRV of zip. Therefore, this should be safe to bump.
2021-07-06 00:28:55 +02:00
Marli Frost
7edf2489d5
release 0.5.13
2021-06-04 19:41:03 +01:00
Marli Frost
61de5d51ac
feat: constant for handling missing password
2021-06-04 18:42:20 +01:00
Marli Frost
3fd44ffd5d
Merge pull request #200 from qu1x/support-extra-field
2021-05-11 11:18:17 +01:00
Plecra
9e1b1c73e1
Merge pull request #235 from BenjaminRi/infozip-decrypt
...
Add Info-ZIP password validation
2021-05-11 10:55:36 +01:00
Benjamin Richner
aee5ff09bc
Fix unit test in types.rs
2021-05-02 04:10:32 +02:00
Benjamin Richner
80f4c43369
Add Info-ZIP password validation
2021-05-02 04:02:50 +02:00
Marli Frost
465e7cebd6
fix: update CI to MSRV 1.36.0
...
*I could've sworn I did this already*
2021-04-19 12:32:20 +01:00
Marli Frost
8ecbdb1870
chore: update to bzip 0.4
2021-04-19 12:29:19 +01:00
Plecra
ce272616ac
Merge pull request #215 from Contextualist/append
...
Support append to an existing archive
2021-04-19 12:06:26 +01:00
Marli Frost
44352aa34b
fix: allow non-utf8 comments in ZipWriter
2021-04-19 12:02:32 +01:00
Plecra
92799661a7
Merge pull request #231 from a1phyr/remove_archive_bounds
...
Remove `io::Read + io::Seek` bound to `ZipArchive`
2021-04-19 11:50:41 +01:00
Marli Frost
88e6f87884
chore: release 0.5.12
2021-04-16 16:59:20 +01:00
Plecra
2d99f88870
Merge pull request #222 from mbrubeck/flate2
...
Allow flate2 >1.0.14
2021-04-16 16:58:37 +01:00
Benoît du Garreau
7a05b1a783
Remove io::Read + io::Seek
bound to ZipArchive
2021-04-10 14:13:57 +02:00
Marli Frost
08adaa5fbf
publish 0.5.11
2021-03-01 12:06:16 +00:00