Commit graph

717 commits

Author SHA1 Message Date
Chris Hennick
a86a72fdc6
chore: Fix conflicts with other recently-merged PRs 2024-05-03 13:24:47 -04:00
Chris Hennick
20bfcd960c
style: fix a cargo fmt check 2024-05-03 13:24:15 -04:00
Chris Hennick
875ee30f91
style: Fix a Clippy warning in write.rs 2024-05-03 13:24:15 -04:00
Chris Hennick
d98772e633
style: Fix a Clippy warning in read.rs 2024-05-03 13:24:15 -04:00
Danny McClanahan
d1695053f5
use indexmap 2024-05-03 13:24:11 -04:00
Chris Hennick
1d1d9a631f
Merge branch 'master' into no-byte-order-a 2024-05-02 22:22:42 -07:00
Chris Hennick
3cf7a520e0
chore: Update due to merge of #82 2024-05-02 17:55:13 -07:00
Chris Hennick
84ae5fc157
refactor: Remove byteorder dependency (#83) 2024-05-02 17:50:27 -07:00
Chris Hennick
48707f7ce7
Merge pull request #84 from psychon/psychon-patch-1
Remove unnecessary "mut"
2024-05-02 22:23:43 +00:00
Chris Hennick
ef0c942db7
Merge pull request #75 from cosmicexplorer/oldpr400
feat: add ZipWriter::finish_into_readable()
2024-05-02 21:14:48 +00:00
Chris Hennick
033ec7bd46
Merge pull request #76 from cosmicexplorer/oldpr401
feat: add ZipWriter::merge_archive() to efficiently copy all entries from a ZipArchive
2024-05-02 20:49:28 +00:00
Chris Hennick
c8655d9eda
Merge pull request #77 from cosmicexplorer/oldpr395
refactor: use num_enum to clean up the System type
2024-05-02 20:48:04 +00:00
Chris Hennick
90dc62ba18
Merge pull request #78 from cosmicexplorer/oldpr397
refactor: use displaydoc and thiserror to remove some boilerplate
2024-05-02 20:43:46 +00:00
Uli Schlachter
3d66212366
Remove unnecessary "mut"
roundtrip() takes a &mut, but only uses this argument non-mutably.
2024-05-02 20:58:34 +02:00
Chris Hennick
383e00de62
Merge branch 'master' into oldpr395 2024-05-02 11:33:59 -07:00
Chris Hennick
64325a19f3
Merge branch 'master' into oldpr397 2024-05-02 11:33:30 -07:00
Chris Hennick
c3fe6f0954
Merge branch 'master' into oldpr437a 2024-05-02 11:31:57 -07:00
Chris Hennick
2309eb7b64
Revert "fix: Build was failing with bzip2 enabled"
This reverts commit 5fbc9912a3.
2024-05-02 11:22:56 -07:00
Chris Hennick
f9d2952686
Merge branch 'master' into oldpr395 2024-05-02 11:20:29 -07:00
Chris Hennick
28523f66c0
Merge branch 'master' into oldpr397 2024-05-02 11:18:21 -07:00
Chris Hennick
5fbc9912a3
fix: Build was failing with bzip2 enabled 2024-05-02 10:59:48 -07:00
Chris Hennick
9af296d080
style: cargo fmt --all, fix bzip2 error 2024-05-02 10:55:41 -07:00
Chris Hennick
3140276a33
Merge remote-tracking branch 'jans/master' into oldpr437a
# Conflicts:
#	README.md
#	src/cp437.rs
#	src/read.rs
#	src/types.rs
#	src/write.rs
2024-05-02 10:51:01 -07:00
Chris Hennick
a994667db6
style: remove extra spaces before comment 2024-05-02 09:39:50 -07:00
Chris Hennick
d802453525
style: rearrange imports to satisfy cargo fmt check 2024-05-02 09:35:46 -07:00
Jan Starke
09331a935e
add clippy exclusion 2024-05-02 09:24:05 +02:00
Jan Starke
0321c05557
fix some clippy warnings
fix another clippy complaint

ad support for extended timestamp

support missing timestamps in the extended timestamps field

handle inconsistencies between flags and len

handle len_left

add getter

Update README.md to state that the crate has moved

ad support for extended timestamp

handle inconsistencies between flags and len

handle len_left

add getter

Update README.md to state that the crate has moved
2024-05-02 09:18:18 +02:00
Danny McClanahan
a16a34f1a5
use displaydoc and thiserror to remove some boilerplate 2024-05-02 00:41:40 -04:00
Danny McClanahan
3cfbdfca83
use num_enum to clean up the System type 2024-05-02 00:30:35 -04:00
Danny McClanahan
aad5d988d6
add ZipWriter::merge_archive() method 2024-05-02 00:22:32 -04:00
Danny McClanahan
68f7f5d452
add finish_into_readable() 2024-05-02 00:02:49 -04:00
Brett Simons
24f4b98ae4
Update stream.rs to use the is_dir function instead of explicitly checking ZipFile name 2024-04-30 09:05:17 -07:00
Brett Simons
722234711f
Fix directory check in extract function
The directory check is not robust and fails if the path uses the Windows style path separator and not the unix style. A function "is_dir" already exists and accounts for this so this change switches to using that function instead.
2024-04-30 09:05:16 -07:00
Chris Hennick
90fd957bc9
Merge pull request #44 from zip-rs/oldpr421
fix: Improve ErrorKind in ZipError to io::Error conversion
2024-04-30 08:37:49 +00:00
Chris Hennick
b3991bbfe2
Merge pull request #39 from awaken1ng/issue-280-2
fix: Decrypt the read bytes in ZipCrypto instead of entire buffer
2024-04-30 04:23:56 +00:00
Chris Hennick
686f6f1abf
feat: Improve ErrorKind in ZipError to io::Error conversion (previously https://github.com/zip-rs/zip-old/pull/421) 2024-04-29 19:16:31 -07:00
Chris Hennick
9739df01dc
build: Fix a bug where cargo syntax is different for MSRV below 1.77.0 2024-04-29 17:00:11 -07:00
Chris Hennick
122ff1f8cb
build: Emit a warning when deprecated deflate-miniz is used 2024-04-29 16:49:43 -07:00
Chris Hennick
cae144b2c0
style: fix unused-variable warning for test
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
2024-04-29 13:33:53 -07:00
Chris Hennick
42972297f1
fix: Rare bug where find_and_parse would give up prematurely on detecting a false end-of-CDR header 2024-04-29 13:18:17 -07:00
Chris Hennick
135cc54ba8
Merge branch 'master' into issue-280-2 2024-04-28 10:59:58 -07:00
Chris Hennick
e48d4ef1d1
revert: refactor!: remove deflate-miniz feature since it's now equivalent to deflate (#35)"
Reverts: 16633213
2024-04-28 10:43:52 -07:00
awakening
4078bd34cd
fix: Decrypt the read bytes in ZipCrypto instead of entire buffer
Fixes `corrupt deflate stream` panic when extracting a file from encrypted archive (zip-rs/zip#280).
2024-04-27 23:41:32 +07:00
Chris Hennick
1663321323
refactor!: remove deflate-miniz feature since it's now equivalent to deflate (#35) 2024-04-24 00:21:04 -07:00
Chris Hennick
231e154fae
style: fix a conditionally-unused import 2024-04-23 13:12:29 -07:00
Chris Hennick
f81a5b9149
test: new test requires one of the deflate features 2024-04-23 12:13:41 -07:00
Chris Hennick
00378bc6f2
fix: Alignment was previously handled incorrectly (#33) 2024-04-23 12:07:30 -07:00
Chris Hennick
c3d9123abf
test: unit test to reproduce #33 2024-04-23 11:42:32 -07:00
Chris Hennick
46ff80d294
test: verify that we can read a file with a data descriptor 2024-04-23 11:09:06 -07:00
Chris Hennick
ffa7772cc3
style: cargo fmt --all 2024-04-22 19:56:46 -07:00