Johannes Löthberg
d096e4dbf1
Add support for writing AES-encrypted files
...
Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com>
2024-05-06 16:37:05 +02:00
Johannes Löthberg
80dc8f2484
Add compression method to AES info
...
Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com>
2024-05-06 16:37:05 +02:00
Johannes Löthberg
a17578990b
Add AesWriter
...
Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com>
2024-05-06 16:37:05 +02:00
Johannes Löthberg
7c1e21403f
Wrap AesCtrZipKeyStream in inner Cipher enum
...
Boxing it as we were doing previously lead to the writer not being Send
anymore.
Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com>
2024-05-06 16:37:05 +02:00
Chris Hennick
026b26bcdb
Merge pull request #97 from zip-rs/release-plz-2024-05-06T01-31-43Z
...
chore: release v1.2.0
2024-05-06 07:29:50 -07:00
Chris
3fe87e998e
chore: release
...
Signed-off-by: Chris <4961925+Pr0methean@users.noreply.github.com>
2024-05-06 08:20:05 +00: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
30ef662aa2
Revert "chore: Use panic! rather than abort to ensure the fuzz harness can process the failure"
...
This reverts commit 0011370fdc
.
2024-05-05 20:19:09 -07:00
Chris Hennick
0011370fdc
chore: Use panic! rather than abort to ensure the fuzz harness can process the failure
2024-05-05 20:17:12 -07:00
Chris Hennick
f2b55a1f59
chore: Update fuzz_write to use replace_with
2024-05-05 20:09:23 -07: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
e9d48b7333
style: Remove unnecessary "mut"s in merge_archive benchmarks
2024-05-05 19:39:13 -07:00
Chris Hennick
b59515bbd7
chore: Remove a drop that can no longer be explicit
2024-05-05 19:30:18 -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
e273ff40d5
Merge pull request #94 from zip-rs/release-plz-2024-05-03T20-10-00Z
...
chore: release v1.1.4
2024-05-04 09:26:31 -07:00
Chris Hennick
a9482ea8ca
Bump version to trigger new release PR
...
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
2024-05-04 09:21:18 -07:00
Chris Hennick
52af9ffd23
Merge pull request #96 from zip-rs/oldpr452
...
Use clap to parse args and add compression method argument in write_dir example
2024-05-04 05:05:04 +00:00
Chris
62ed5dc61a
chore: release
...
Signed-off-by: Chris <4961925+Pr0methean@users.noreply.github.com>
2024-05-04 03:38:36 +00:00
Chris Hennick
3ccaa3cc85
style: cargo fmt --all & #![allow(dead_code)]
2024-05-03 19:51:23 -07:00
Chris Hennick
de95acc543
style: allow conditionally-unused variables in write_dir.rs
2024-05-03 19:49:33 -07:00
Chris Hennick
c4906cfd59
Merge remote-tracking branch 'allilo/add_compression_algo_arg' into oldpr452
...
# Conflicts:
# Cargo.toml
# examples/write_dir.rs
2024-05-03 19:44:55 -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
Allison Lo
1852e96192
Prelim changes to write_dir
...
Remove old code and fix match statement
Edit arg names and use PathBuf and Path
Fix path ordering
Fix enum names
Add clap as a dev dependency
Pin clap version
2024-05-03 17:19:30 -07: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
00d8cadba3
Merge pull request #92 from zip-rs/docs-check-feature-flag
...
ci: Run cargo doc and clippy with default features, all features and no features
2024-05-03 21:18:47 +00:00
Chris Hennick
fdcdad9f03
Merge pull request #67 from zip-rs/oldpr384
...
doc: new example to show how to write large files (greater than 4GB)
2024-05-03 21:11:23 +00: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
5ad3fe4acf
Merge pull request #91 from cosmicexplorer/oldpr396a
...
perf: use indexmap in read::zip_archive::Shared instead of a separate vec and hashmap
2024-05-03 19:43:20 +00:00
Chris Hennick
9442a639fb
Merge branch 'master' into oldpr384
2024-05-03 11:57:18 -07:00
Chris Hennick
bebf54c641
chore: Fix: cargo doc doesn't have a -D warnings
option
2024-05-03 11:55:02 -07:00
Chris Hennick
06feb9ae72
chore: Fix: cargo doc doesn't have an --all-targets
option
2024-05-03 11:51:00 -07:00
Chris Hennick
d663b31fb2
chore: Fix: don't feature-gate all of merge_archive.rs, only the parts that use compression
2024-05-03 11:49:09 -07:00
Chris Hennick
cb6f87bc02
chore: Fix a pre-existing failure
2024-05-03 11:43:41 -07:00
Chris Hennick
f814a6dbc3
ci: Bug fix: need to check out code and install toolchain in new jobs
2024-05-03 11:41:04 -07:00
Chris Hennick
8e0f4ace34
ci: Run cargo doc and clippy with default features, all features and no features
2024-05-03 11:32:07 -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
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