Commit graph

99 commits

Author SHA1 Message Date
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
Chris Hennick
67bfe53d65
Merge upstream version 0.6.5 2023-05-08 18:54:10 -07:00
Chris Hennick
ae6d98dec2
Fix formatting and a Clippy issue 2023-05-01 10:13:53 -07:00
Chris Hennick
90b89b5460
WIP: Write fuzzing 2023-04-29 21:19:31 -07:00
Chris Hennick
7d89194298
Bug fix for permissions on deep-copied files 2023-04-29 12:49:20 -07:00
Kyle Bloom
1aa3710aff Remove redundant tests 2023-02-02 08:56:19 +00:00
Marli Frost
d06d4b295f refactor: move the new ZipStreamReader API to the unstable module 2023-02-01 17:55:07 +00:00
Jiahao XU
16753209af Refactor: Extract ZipFileData::unix_mode
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
a614d1f226 Refactor: Extract ZipFileData::enclosed_name
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Marli Frost
42eabc9e33 fix: update references to old from_time API 2023-02-01 14:01:53 +00:00
Kyle Bloom
ccd20c118e fix: Unused import with time feature 2023-02-01 13:58:15 +00:00
Kyle Bloom
ab2800b4d8 chore: Move use for TryInto to top 2023-02-01 13:58:15 +00:00
Kyle Bloom
c2adaf7ee0 fix: Use try into implementation for from_time 2023-02-01 13:58:15 +00:00
Kyle Bloom
3f770178ec fix: Change error type to unit-like struct 2023-02-01 13:58:15 +00:00
Kyle Bloom
5726a07a76 feat: Move from_time to try_from
Moves from_time function to TryFrom<OffsetDateTime>
2023-02-01 13:58:15 +00:00
Wyatt Herkamp
1c5cd4ffda Fixed new Clippy Warnings 2022-10-13 07:51:02 -04:00
Wyatt Herkamp
24caeaac27 Make github ci use 1.59 for time depend and fix two clippy warnings 2022-10-13 07:44:21 -04:00
messense
2d0d1d2990
Fix build for armv5te target 2022-04-02 10:37:36 +08:00
Alexander Zaitsev
4aafe04be6
Merge pull request #285 from qu1x/fix-targets-without-atomic-64
Fix targets without 64-bit atomics.
2022-03-25 11:50:07 +03:00
Дмитрий Кальянов
e8dabec5b6 Add support for specifying compression level 2022-03-23 13:06:28 +03:00
Rouven Spreckels
1f8c642558 Fix targets without 64-bit atomics. 2022-03-21 16:39:52 +01:00
Alexander Zaitsev
ca60821c0a merge: Merge branch 'master' into explainer 2022-03-08 18:13:34 +03:00
Benoît du Garreau
addfe01eb0 Make ZipArchive cheap to clone 2022-02-05 16:08:55 +01:00
Lireer
d7f0a182b6 Merge remote-tracking branch 'zip-rs/zip/master' 2022-01-25 17:48:45 +01:00
Marli Frost
b080731c55 chore: rustfmt 2022-01-23 21:53:42 +00:00
Marli Frost
0eea88d6c0 doc: more beginner-friendly DateTime
give more warnings about possible misuse of the type
2022-01-23 21:43:28 +00:00
Alexander Zaitsev
e636399935 fix: fix all Clippy warnings
- some warnings are muted since fixing them right now can be a breaking
  API change
- fix Clippy warns in the src, examples and tests

Tested:
- Local test run
2022-01-23 18:54:43 +03:00
Alexander Zaitsev
061cdf149f fix: fix Clippy warnings
- fix a bunch of Clippy warnings
- fix some usages of assert! (change to assert_ne)

Tested:
- Local unit-tests run
2022-01-23 17:35:27 +03:00
Steve Myers
0ee34bd105
Bump MSRV to 1.52.0 and fix cargo fmt and doc 2021-10-25 10:31:46 -07:00
Steve Myers
2f71810c07
Upgrade time dependency to "0.3"
Versions of time crate prior to 0.2.23 fail audit due to RUSTSEC-2020-0071.

Crate: time
Version: 0.1.43
Title: Potential segfault in the time crate
Date: 2020-11-18
ID: RUSTSEC-2020-0071
URL: https://rustsec.org/advisories/RUSTSEC-2020-0071
Solution: Upgrade to >=0.2.23
2021-10-21 21:31:37 -07:00