Chris Hennick
b0c666aa0c
chore: Continue to accept archives with invalid DateTime, and use now_utc()
as default only when writing, not reading
2024-05-23 09:44:06 -07:00
Chris Hennick
42af7158e9
style: cargo fmt --all
2024-05-21 08:46:24 -07:00
Chris Hennick
a731f2a4c6
refactor: Merge the hidden deflate-flate2 flag into the public one
2024-05-20 18:02:30 -07:00
Chris Hennick
870f915bc5
refactor: Rename _deflate-non-zopfli to _deflate-flate2
2024-05-20 12:02:05 -07:00
Chris Hennick
6071dc13b0
perf: Change default compression implementation to flate2/zlib-ng
2024-05-20 11:55:51 -07:00
Chris Hennick
be8cb432f6
style: cargo fmt --all
2024-05-13 20:22:11 -07:00
Chris Hennick
3bf0301e39
feat: Add is_symlink
method
2024-05-13 19:52:14 -07:00
Chris Hennick
8eb5a75a87
style: Merge patches from code into non_utf8.zip
2024-05-10 09:01:17 -07:00
Chris Hennick
186c89deea
chore: String has into_bytes but not into_boxed_bytes
2024-05-09 19:11:16 -07:00
Chris Hennick
f7ea2764a2
chore: &str doesn't have into_boxed_bytes, so call to_string first
2024-05-09 19:08:55 -07:00
Chris Hennick
35b3a8f257
chore: fix type mismatch in shallow_copy_file caused by last fix
2024-05-09 19:06:44 -07:00
Chris Hennick
34b99956c9
chore: shallow_copy_file needs to update file_name_raw
2024-05-09 19:04:08 -07:00
Chris Hennick
650dd9a71f
chore: More patches to binary file
2024-05-09 18:57:15 -07:00
Chris Hennick
3454f84e85
chore: Patch out-of-date binary file
2024-05-09 18:50:49 -07:00
Chris Hennick
7ba16ae622
chore: Update generic type bounds
2024-05-09 18:41:48 -07:00
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
bd473ef75b
perf: Use boxed slice for archive comment, since it can't be concatenated
2024-05-08 15:36:12 -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
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
6d7c7fa57a
fix: Failed to clear "writing_raw" before finishing a symlink, leading to dropped extra fields
2024-05-07 21:47:49 -07:00
Chris Hennick
447f9c6e4f
refactor: Overhaul impl Arbitrary for FileOptions
2024-05-06 14:20:27 -07:00
Chris Hennick
3ff9428e66
Merge branch 'master' into aes-encryption3
...
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
2024-05-06 11:44:55 -07:00
Chris Hennick
2cff4ec936
test: Update reference version-needed-to-open in unit tests (cont'd)
2024-05-06 11:43:01 -07:00
Chris Hennick
ad292ffbd2
test: Update reference version-needed-to-open in unit tests
2024-05-06 11:34:25 -07:00
Chris Hennick
51ef4f0f30
test: Update test_path_normalization to match corrected requirements
2024-05-06 11:17:21 -07:00