Shun Sakai
1e39276b2b
feat: Support mutual conversion between DateTime
and MS-DOS pair
2024-05-24 19:36:08 +09:00
Chris Hennick
7d61377503
refactor: Change type of last_modified_time
to Option<DateTime>
2024-05-23 14:15:38 -07:00
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
7a34aa5f41
refactor!: Rename from_msdos
to from_msdos_unchecked
, make it unsafe, and add try_from_msdos
( #145 )
2024-05-23 09:04:53 -07:00
Chris Hennick
ef74a26dd5
Merge pull request #141 from sorairolake/deprecated-since
...
chore: Add `since` to `deprecated`
2024-05-23 03:44:38 +00:00
Shun Sakai
e3b12e313e
feat: Add fmt::Display
for DateTime
2024-05-22 11:35:26 +09:00
Shun Sakai
00be854b11
feat: Implement more traits for DateTime
...
Support comparing, ordering and hashing.
2024-05-22 10:50:18 +09:00
Shun Sakai
e188a36d1c
chore: Add since
to deprecated
...
Add the `since` field to the `deprecated` attribute for
`DateTime::from_time` and `DateTime::to_time`.
2024-05-22 09:57:23 +09:00
Shun Sakai
ac8b04c0f1
feat: Add TryFrom<DateTime> for OffsetDateTime
2024-05-21 15:38:39 +09:00
Chris Hennick
3afe549161
refactor: Convert impl TryInto<NaiveDateTime> for DateTime
to impl TryFrom<DateTime> for NaiveDateTime
( #136 )
2024-05-19 11:51:20 -07:00
Chris Hennick
b7ac989013
refactor: is_dir only needs to look at the filename
2024-05-15 16:44:59 -07:00
Chris Hennick
09676e7bee
chore: Add missing ZipFileData::is_dir()
method
2024-05-15 16:20:50 -07:00
Chris Hennick
3bf0301e39
feat: Add is_symlink
method
2024-05-13 19:52:14 -07:00
Jake Shadle
224fc60a9b
Remove num_enum
2024-05-07 08:16:34 +02:00
Chris Hennick
845c3ec91f
refactor: Remove unused atomic
module
2024-05-06 14:14:25 -07:00
Chris Hennick
0518194ae2
style: cargo fmt --all
2024-05-06 13:07:19 -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
61d56318bf
style: Fix fmt and clippy warnings
2024-05-06 11:24:46 -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
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
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
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
d802453525
style: rearrange imports to satisfy cargo fmt check
2024-05-02 09:35:46 -07: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
3cfbdfca83
use num_enum to clean up the System type
2024-05-02 00:30:35 -04:00
Wyatt Herkamp
61afe4dad9
Added ExtendedFileOptions
2024-04-15 16:32:07 -04:00
Chris Hennick
9438bef0f7
Replace AtomicU64 with OnceLock
2024-04-14 07:53:32 -07:00
Chris Hennick
161bd87724
Refactor to use boxed slices instead of Vec where possible
2024-04-08 12:09:23 -07:00
Chris Hennick
db69d25828
Bug fix
2024-04-08 10:45:22 -07:00
Chris Hennick
384afcda2a
Switch from String
to Box<str>
for metadata
2024-04-08 10:29:17 -07:00
Chris Hennick
007918a81f
Update dependencies and allow for 64-bit Zopfli compression levels
2024-02-28 16:27:03 -08:00
Chris Hennick
3cb826fe8b
Make functions const
where possible
2023-06-07 22:15:06 -07:00
Chris Hennick
bcd8fb27d2
Bug fix
2023-06-01 14:27:55 -07:00
Chris Hennick
34945fe884
Refactor to eliminate From<Infallible>
2023-06-01 14:26:15 -07:00
Chris Hennick
07679d3b7f
Reformat and fix error
2023-06-01 12:59:17 -07:00
Chris Hennick
60553541ed
Change error return type to DateTimeRangeError
2023-06-01 12:41:54 -07:00
Chris Hennick
2407ef95c6
Fixes and refactors for no-features build
2023-05-30 18:17:59 -07:00
Chris Hennick
eb8709afdf
Fix Clippy and fmt warnings
2023-05-30 10:41:45 -07:00
Chris Hennick
bd0cc62afa
Bug fix
2023-05-30 10:14:06 -07:00
Chris Hennick
630ca3fa0f
Bug fixes for chrono integration
2023-05-30 10:06:36 -07:00
Chris Hennick
b47d6419b8
Add chrono integration
2023-05-30 09:48:39 -07:00
Chris Hennick
5d16fa250c
Revert "Wrap extra-data field in an Option, to save Arc overhead when empty"
...
This reverts commit 1df9186527
.
2023-05-15 21:25:34 -07:00
Chris Hennick
1df9186527
Wrap extra-data field in an Option, to save Arc overhead when empty
2023-05-15 20:23:46 -07:00
Chris Hennick
2b07fd1e10
Remove unused import
2023-05-14 10:52:23 -07:00
Chris Hennick
df3dfc1991
Change Rc to Arc since sharing across ZipWriter instances is possible
2023-05-14 10:45:13 -07:00
Chris Hennick
dbf39339de
Wrap extra data in Rc so FileOptions and ZipFileData can be cloned faster
2023-05-14 09:20:15 -07:00
Chris Hennick
ff4dee28d7
Bug fix
2023-05-13 15:38:09 -07:00
Chris Hennick
4faebb4468
Overhaul extra-data interface
2023-05-13 13:59:14 -07:00
Chris Hennick
80f836a661
Use a struct for extra data
2023-05-13 11:02:08 -07:00