Commit graph

1461 commits

Author SHA1 Message Date
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
0e97f9eebe
Merge pull request #90 from zip-rs/dependabot/cargo/num_enum-0.7.2
chore(deps): update num_enum requirement from 0.6.1 to 0.7.2
2024-05-03 17:41:33 +00:00
dependabot[bot]
6f2887831d
chore(deps): update num_enum requirement from 0.6.1 to 0.7.2
Updates the requirements on [num_enum](https://github.com/illicitonion/num_enum) to permit the latest version.
- [Commits](https://github.com/illicitonion/num_enum/compare/0.6.1...0.7.2)

---
updated-dependencies:
- dependency-name: num_enum
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-03 10:24:10 +00:00
Chris Hennick
103f1eccc4
Merge pull request #87 from zip-rs/no-byte-order-a
refactor: Remove byte order dependency
2024-05-03 08:33:24 +00:00
Chris Hennick
1d1d9a631f
Merge branch 'master' into no-byte-order-a 2024-05-02 22:22:42 -07:00
Chris Hennick
b6caa1c377
ci: Run unit tests on multiple feature sets 2024-05-02 20:12:43 -07:00
Chris Hennick
5e7939002b
ci: run checks on release branches, since they don't run on release PRs 2024-05-02 19:42:49 -07:00
Chris Hennick
3cf7a520e0
chore: Update due to merge of #82 2024-05-02 17:55:13 -07:00
Chris Hennick
b520c7f517
test: Fix end-to-end test 2024-05-02 17:50:28 -07:00
Chris Hennick
84ae5fc157
refactor: Remove byteorder dependency (#83) 2024-05-02 17:50:27 -07:00
Chris Hennick
58ac18ca24
Merge pull request #55 from zip-rs/oldpr443
doc: add append example
2024-05-02 23:17:37 +00: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
Chris Hennick
b36f363be5
Merge pull request #82 from zip-rs/oldpr437a
feat: Add support for extended timestamps
2024-05-02 20:36:05 +00:00
Chris Hennick
08d30e976a
style: Fix Clippy warnings: unused imports 2024-05-02 13:31:38 -07:00
Chris Hennick
da3bbc87d7
doc(examples): Fix a bug where type SimpleFileOptions must be specified 2024-05-02 12:58:31 -07: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
8f61ff2451
Merge branch 'master' into oldpr443 2024-05-02 11:57:53 -07:00
Chris Hennick
3f69a260e5
Merge branch 'master' into oldpr400 2024-05-02 11:36:22 -07:00
Chris Hennick
ffea4df58f
Merge branch 'master' into oldpr401 2024-05-02 11:34:20 -07: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
2c3a3f5aa0
revert: #58 (partial): bzip2-rs can't replace bzip2 because it's decompress-only 2024-05-02 11:26:14 -07:00
Chris Hennick
b5bc43857a
Revert "Make bzip2 a synonym of bzip2-rs"
This reverts commit 01a8ff41b1.
2024-05-02 11:23:32 -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
7b6e057a18
Merge branch 'master' into oldpr437a 2024-05-02 11:19:23 -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
ccaba9df74
add test case for extended timestamp 2024-05-02 09:34:20 +02: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