Jan Starke
09331a935e
add clippy exclusion
2024-05-02 09:24:05 +02: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
Marli Frost
3e88fe66c9
in-source vulnerability tracking
2023-09-19 18:55:01 +01:00
Marli Frost
21a20584bc
publish 0.6.6 with aes 0.8
2023-05-16 07:40:54 +01:00
Plecra
4b8f99c238
Merge pull request #354 from zip-rs/aes-bump
...
update aes to 0.8
2023-05-16 07:38:26 +01:00
Plecra
13a19f682f
Merge pull request #360 from jturner314/msrv-in-manifest
...
Add rust-version field to Cargo.toml
2023-05-08 21:30:15 +01:00
Plecra
b76b259ed0
Merge pull request #350 from aquacash5/redundant-tests
...
Remove redundant tests
2023-05-08 21:25:44 +01:00
Marli Frost
80b8d1eced
publish 0.6.5
2023-05-06 15:50:59 +01:00
Marli Frost
2eeb47ce56
add support for writing files with PKWARE encryption
2023-05-06 15:48:52 +01:00
Jim Turner
7d00bbea90
Add rust-version field to Cargo.toml
...
This causes compilers older than the MSRV to produce a warning/error
which more clearly indicates that the crate needs a newer compiler.
See https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
2023-03-28 21:57:44 -04:00
Marli Frost
7fe65607f3
update aes to 0.8
...
(hazard): The changelog in aes doesn't indicate any change in behaviour,
and I have assumed the new APIs work identically
2023-02-12 11:17:54 +00:00
Kyle Bloom
1aa3710aff
Remove redundant tests
2023-02-02 08:56:19 +00:00
Plecra
e32db515a2
Merge pull request #316 from NobodyXu/streaming
...
Implement a high-level, easy-to-use streaming decoder that recover all information from a zip
2023-02-01 18:15:29 +00:00
Marli Frost
c4c6ec9e7c
fix: clippy
2023-02-01 18:03:03 +00:00
Marli Frost
d06d4b295f
refactor: move the new ZipStreamReader API to the unstable module
2023-02-01 17:55:07 +00:00
Marli Frost
1eb491e96e
fix: clippy lint
2023-02-01 17:39:10 +00:00
Jiahao XU
e322842bfd
Fix clippy warning in stream.rs:85
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
f97f017d99
Rm read::stream::test::zip_contents
...
As streaming mode cannot calculate central_header_start.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
89ff32d93b
Rm infesible guarantee in ZipStreamVisitor::visit_additional_metadata
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
ef1846e121
Rm stream::tests::zip64_with_leading_junk
...
As in streaming mode, there is no way to ignore the leading junk.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
b944bee72d
Add unit tests for mod read::streams
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
c6fe396b56
Impl ZipStreamFileMetadata::is_{dir, file}
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
d858994e1e
Add guarantee for ZipStreamVisitor::visit_additional_metadata
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
8f7c43c227
Rm unnecessary p.exist()
check in ZipStreamReader::extract
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
5b6d9557c6
Impl ZipStreamReader::extract
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
42e2865ccb
derive(Debug)
for ZipStreamFileMetadata
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
02c3699be2
Impl new mod read::stream
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +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
Jiahao XU
08c2e76705
Fix param order in central_header_to_zip_file_inner
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:31:12 +00:00
Jiahao XU
e99c15471c
Mv central header parsing to central_header_to_zip_file
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:31:12 +00:00
Jiahao XU
57440efa16
Refactor: Extract new fn central_header_to_zip_file_inner
...
that does not require `reader` to implement `io::Seek`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:31:12 +00:00
Marli Frost
0a09253896
docs: clarify how to use the add_directory API
...
closes #323
2023-02-01 17:23:53 +00:00
Marli Frost
e4503a312a
docs: remove maintenance warning from the README. (im baaack)
2023-02-01 14:15:02 +00:00
Marli Frost
f7dcc666b7
release: 0.6.4
2023-02-01 14:10:33 +00:00
Plecra
d8cefbe72f
Merge pull request #330 from aquacash5/try-from-datetime
...
Implement TryFrom<OffsetDateTime> for DateTime
2023-02-01 14:07:15 +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
Plecra
ac3576c888
Merge pull request #338 from aquacash5/fix-clippy-issues
...
Fix clippy issues
2023-02-01 13:55:25 +00:00
Kyle Bloom
9a577d09fb
Merge branch 'zip-rs:master' into fix-clippy-issues
2023-02-01 10:07:13 +00:00
Kyle Bloom
503eda67c3
fix: Clippy should implement trait
2023-01-31 17:36:06 +00:00
Kyle Bloom
f3d683a64c
fix: Clippy needless borrow
2023-01-31 17:32:55 +00:00
Kyle Bloom
03f5009c34
fix: Clippy uninlined format args
2023-01-31 17:29:34 +00:00
Plecra
be73175dd0
Merge pull request #333 from lnicola/time-features
...
Disable `time` features
2023-01-30 19:29:36 +00:00
Laurențiu Nicola
94b183b023
Add a changelog
2023-01-30 21:21:44 +02:00
Laurențiu Nicola
f4cad8adb4
Disable time features
2023-01-30 21:21:44 +02:00