Chris Hennick
61d56318bf
style: Fix fmt and clippy warnings
2024-05-06 11:24:46 -07:00
Chris Hennick
51ef4f0f30
test: Update test_path_normalization to match corrected requirements
2024-05-06 11:17:21 -07:00
Chris Hennick
c2fe20741c
fix: version_needed was wrong when e.g. cfg(bzip2) but current file wasn't bzip2 ( #100 )
2024-05-06 11:16:16 -07:00
Chris Hennick
e1ef3fc65c
fix: file paths shouldn't start with slashes ( #102 )
2024-05-06 10:52:52 -07:00
Chris Hennick
d629b364e8
Merge pull request #98 from zip-rs/finish_owned
...
refactor: Make `ZipWriter::finish()` consume the `ZipWriter`
2024-05-06 06:17:13 +00:00
Chris Hennick
52375437dc
fix: Process ZIP files with up to a 65,978-byte comment ( https://github.com/zip-rs/zip-old/issues/183 )
2024-05-05 19:48:32 -07:00
Chris Hennick
84aa6e8f11
refactor: Make ZipWriter::finish()
consume the ZipWriter
2024-05-05 18:55:48 -07:00
Chris Hennick
a8ec016b51
style: cargo fmt --all
2024-05-05 18:43:40 -07:00
Chris Hennick
b3f9170f23
chore: Add #![allow(unexpected_cfgs)]
in nightly
2024-05-05 18:42:49 -07:00
Chris Hennick
aa890fa634
feat: Add method decompressed_size()
so non-recursive ZIP bombs can be detected
2024-05-05 18:28:17 -07:00
Chris Hennick
629707c060
Merge pull request #95 from zip-rs/speedup_path_to_string
...
perf: Speedup path_to_string when path is already in the correct format
2024-05-04 00:57:25 +00:00
Chris Hennick
1b2c42b199
style: cargo fmt --all
2024-05-03 15:18:31 -07:00
Chris Hennick
74e76a94ca
chore: Refactor: can short-circuit handling of paths that start with MAIN_SEPARATOR, no matter what MAIN_SEPARATOR is
2024-05-03 15:01:43 -07:00
Chris Hennick
2adbbccb82
perf: Quick filter for paths that contain "/../" or "/./" or start with "./" or "../"
2024-05-03 14:59:35 -07:00
Chris Hennick
0fe12b2ec9
chore: Bug fix: non-canonical path detection when MAIN_SEPARATOR is not slash or occurs twice in a row
2024-05-03 14:34:05 -07:00
Chris Hennick
5cd448802f
chore: Bug fix: must recreate if . or .. is a path element
2024-05-03 14:31:32 -07:00
Chris Hennick
001967186a
perf: Fast handling for separator-free paths
2024-05-03 14:28:14 -07:00
Chris Hennick
6184232e19
perf: Speed up logic if main separator isn't '/'
2024-05-03 14:11:03 -07:00
Chris Hennick
22e8fdbf58
chore: Bug fix
2024-05-03 14:06:48 -07:00
Chris Hennick
753eedb3a7
perf: Drop normalized_components
slightly sooner when not using it
2024-05-03 14:06:29 -07:00
Chris Hennick
efbea6f747
perf: Speed up path_to_string
in cases where the path is already in the proper format
2024-05-03 14:05:39 -07:00
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