Commit graph

850 commits

Author SHA1 Message Date
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
Chris Hennick
64b738a81e
chore(release): revert method deletions from c9cb506bc9 2024-04-22 19:46:32 -07:00
Chris Hennick
c9cb506bc9
Update docs, remove some deprecated methods, and substitute crate version into docstring 2024-04-22 17:23:44 -07:00
Chris Hennick
124ebfdb02
Fix Clippy warnings 2024-04-20 15:14:28 -07:00
Chris Hennick
cdc2e7aa23
Add shallow_copy_file_from_path,deep_copy_file_from_path and raw_copy_file_to_path, and use PathBuf in fuzz_write 2024-04-20 14:38:54 -07:00
Chris Hennick
0087dab984
Update documentation and annotations 2024-04-20 14:13:41 -07:00
Chris Hennick
e412d8b6df
Restore support for Path and fix handling of ".." 2024-04-20 14:05:11 -07:00
Chris Hennick
81e44d1d41
Refactor: replace contains_file_named with index_for_name 2024-04-20 12:31:00 -07:00
Chris Hennick
c22afbf3c7
cargo fmt --all 2024-04-20 12:00:01 -07:00
Chris Hennick
16b66841b3
Add contains_file_named 2024-04-20 11:58:18 -07:00
Chris Hennick
174825229c
Change crate name to "zip" per https://github.com/zip-rs/zip/issues/446#issuecomment-2063837388 2024-04-19 18:50:27 -07:00
Wyatt Herkamp
61afe4dad9
Added ExtendedFileOptions 2024-04-15 16:32:07 -04:00
Chris Hennick
d23f036955 Bug fix 2024-04-14 08:47:35 -07:00
Chris Hennick
c4f91c2895 cargo fmt --all 2024-04-14 08:12:07 -07:00
Chris Hennick
72fde539cd Bump version number to 1.1 due to MSRV bump 2024-04-14 08:03:06 -07:00
Chris Hennick
9438bef0f7 Replace AtomicU64 with OnceLock 2024-04-14 07:53:32 -07:00
Chris Hennick
4f3f2d1fca Bug fix: LZMA state is large, so put it in a Box 2024-04-11 13:28:37 -07:00
Chris Hennick
812498e788 Bug fix: conditionally unused import 2024-04-11 13:18:22 -07:00