Chris Hennick
e1eae16e12
style: Fix cargo fmt re trailing comma in type-constraint list
2024-05-09 18:35:28 -07:00
Chris Hennick
113d18c6a0
chore: fix typo
2024-05-09 18:34:03 -07:00
Chris Hennick
df8479ac4f
chore: Bug fix: ToOwned requires an explicit type bound
2024-05-09 18:33:41 -07:00
Chris Hennick
8e74a9da07
chore: Fix type bound so that to_owned() is available
2024-05-09 18:31:07 -07:00
Chris Hennick
dcc6850c51
style: Fix cargo fmt error re trailing comma
2024-05-09 18:27:54 -07:00
Chris Hennick
955d1eddcd
chore: Add missing to_owned
...
Needed so that `name` can be used to populate both `file_name` (for `insert_file_data`) and `file_name_raw` (for saving)
2024-05-09 18:26:39 -07:00
Chris Hennick
95c8b07bc2
chore: Update misleading comment
2024-05-09 18:25:23 -07:00
Chris Hennick
48de16ca0d
Chore: fix bug: file_name is needed for insert_file_data
2024-05-09 18:24:21 -07:00
Chris Hennick
7fb1ec752d
chore: Fix build error: write_non_utf8 was missing zopfli_buffer_size
2024-05-09 18:10:50 -07:00
Chris Hennick
124ed1bac3
chore: Box<str>'s & doesn't auto-deref
2024-05-09 18:08:39 -07:00
Chris Hennick
0b896a9071
chore: Fix build errors in test write_non_utf8()
2024-05-09 18:06:23 -07:00
Chris Hennick
e334f15f12
Fix bad merge: revert deletion of zip64 extra field
2024-05-09 18:00:40 -07:00
Chris Hennick
00537ae34e
Fix bad merge: revert extra_field_length change
2024-05-09 17:58:45 -07:00
Chris Hennick
0482a1329a
Fix bad mergee: write_local_file_header is now part of start_entry
2024-05-09 17:48:24 -07:00
Chris Hennick
c23bcc55fb
chore: Add a borrow to fix a build error
...
Why didn't the compiler raise this last time?!
2024-05-09 17:15:07 -07:00
Chris Hennick
e9e5e01e3d
chore: Remove turbofish to fix a build error
2024-05-09 17:12:52 -07:00
Chris Hennick
b0a2cbbe52
Fix build errors again
2024-05-09 14:17:05 -07:00
Chris Hennick
20e4c18280
Fix type mismatch for extra_field_length
2024-05-09 13:36:37 -07:00
Chris Hennick
0f086dcc75
Fix remaining build errors
2024-05-09 13:17:34 -07:00
Chris Hennick
169b802136
Fix build errors
2024-05-09 12:59:33 -07:00
Chris Hennick
b9bf6f4ce2
Fix deleted closing curly
...
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
2024-05-09 12:24:18 -07:00
Chris Hennick
d9a2cb1f71
Update to work without byteorder
2024-05-09 12:22:28 -07:00
Chris Hennick
2676366199
Update to use write_u16_le
...
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
2024-05-09 12:20:40 -07:00
Chris Hennick
5d3c73a5d5
Merge branch 'master' into dev/ziped
...
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
2024-05-09 12:19:48 -07:00
Chris Hennick
af776797f0
Merge pull request #104 from zip-rs/release-plz-2024-05-08T04-49-16Z
...
chore: release v1.2.2
2024-05-09 11:05:52 -07:00
Chris
972d6be583
chore: release
...
Signed-off-by: Chris <4961925+Pr0methean@users.noreply.github.com>
2024-05-09 05:28:19 +00:00
Chris Hennick
769fff2035
Merge pull request #101 from Jake-Shadle/master
...
Remove `num_enum`
2024-05-09 00:22:21 +00:00
Chris Hennick
c39f5e8f9e
ci(fuzz): Update fuzz_write corpus to account for shift from Vec<_> to Box<[_]>
2024-05-08 19:28:23 -07:00
Chris Hennick
13a964317d
ci(fuzz): Update fuzz_write corpus to account for shift from Vec<_> to Box<[_]>
2024-05-08 19:14:19 -07:00
Chris Hennick
bd473ef75b
perf: Use boxed slice for archive comment, since it can't be concatenated
2024-05-08 15:36:12 -07:00
Chris Hennick
d996593016
ci(fuzz): Optimize final read-back, and skip it if redundant
2024-05-08 15:15:50 -07:00
Chris Hennick
ed35b9f0e5
Merge branch 'master' into master
2024-05-08 13:38:09 -07:00
Chris Hennick
298f7f5994
ci(fuzz): Reduce fuzz_write to 1e6 iterations
2024-05-08 13:27:28 -07:00
Chris Hennick
5460c9f2cc
ci(fuzz): Test using max_len=500 for fuzz_write
2024-05-08 13:26:45 -07:00
Chris Hennick
43df557932
ci(fuzz): Use a more aggressive timeout for fuzz_write
2024-05-08 12:28:31 -07:00
Chris Hennick
9790fbfa28
ci(fuzz): Further minify fuzz-write corpus
2024-05-08 12:27:30 -07:00
Chris Hennick
eb063ad432
perf: Optimize for the fact that false signatures can't overlap with real ones
2024-05-08 10:59:32 -07:00
Chris Hennick
50767eb84a
ci(fuzz): Update fuzz_read seed corpus
2024-05-08 10:48:01 -07:00
Chris Hennick
9455a279be
ci(fuzz): Update fuzz_write seed corpus
2024-05-08 10:45:28 -07:00
hidez8891
d5f27dfad0
Fixed writing wrong UTF-8 flag
...
If the UTF-8 flag (generic bit 11) is set, file names and comments must be saved in UTF-8 format. (APPENDIX D)
However, the UTF-8 flag is set even for formats that are non-UTF-8 (GB18030, SHIFT_JIS, etc.). Fix this problem.
2024-05-08 22:22:50 +09:00
Chris Hennick
010720fc54
Merge branch 'master' into master
2024-05-07 22:13:53 -07:00
Chris Hennick
0c9be885cb
style: Fix more conditionally-unused imports
2024-05-07 22:09:30 -07:00
Chris Hennick
d5b4c6186d
style: Fix conditionally-unused import
2024-05-07 21:52:11 -07:00
Chris Hennick
15f124f181
style: Fix formatting and Clippy warnings
2024-05-07 21:50:52 -07:00
Chris Hennick
72ef0bf1d6
Merge branch 'master' into master
2024-05-07 21:48:36 -07:00
Chris Hennick
6d7c7fa57a
fix: Failed to clear "writing_raw" before finishing a symlink, leading to dropped extra fields
2024-05-07 21:47:49 -07:00
Jake Shadle
224fc60a9b
Remove num_enum
2024-05-07 08:16:34 +02:00
Chris Hennick
c134f08019
test(fuzz): Update fuzz_read corpus
2024-05-06 19:53:42 -07:00
Chris Hennick
7a77132144
test(fuzz): Additional rounds of fuzz_write corpus reduction
2024-05-06 19:53:40 -07:00
Chris Hennick
dbb8dfc321
test(fuzz): Create seed corpus for fuzz_write
2024-05-06 19:53:37 -07:00