File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " async_zip"
3- version = " 0.0.16 "
3+ version = " 0.0.17 "
44edition = " 2021"
55authors = [" Harry [hello@majored.pw]" ]
66repository = " https://github.com/Majored/rs-async-zip"
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ An asynchronous ZIP archive reading/writing crate.
2020
2121``` toml
2222[dependencies ]
23- async_zip = { version = " 0.0.16 " , features = [" full" ] }
23+ async_zip = { version = " 0.0.17 " , features = [" full" ] }
2424```
2525
2626A (soon to be) extensive list of [ examples] ( https://github.com/Majored/rs-async-zip/tree/main/examples ) can be found under the ` /examples ` directory.
@@ -39,11 +39,11 @@ A (soon to be) extensive list of [examples](https://github.com/Majored/rs-async-
3939
4040### Reading
4141``` rust
42- use tokio :: {io :: AsyncReadExt , fs :: File };
42+ use tokio :: {io :: BufReader , fs :: File };
4343use async_zip :: tokio :: read :: seek :: ZipFileReader ;
4444...
4545
46- let mut file = File :: open (" ./Archive.zip" ). await ? ;
46+ let mut file = BufReader :: new ( File :: open (" ./Archive.zip" ). await ? ) ;
4747let mut zip = ZipFileReader :: with_tokio (& mut file ). await ? ;
4848
4949let mut string = String :: new ();
Original file line number Diff line number Diff line change 1818//! As the central directory of a ZIP archive is stored at the end of it, a non-seekable reader doesn't have access
1919//! to it. We have to rely on information provided within the local file header which may not be accurate or complete.
2020//! This results in:
21- //! - The inability to read internally stored ZIP archives when using the Stored compression method.
21+ //! - The inability to read ZIP entries using the combination of a data descriptor and the Stored compression method.
2222//! - No file comment being available (defaults to an empty string).
2323//! - No internal or external file attributes being available (defaults to 0).
2424//! - The extra field data potentially being inconsistent with what's stored in the central directory.
Original file line number Diff line number Diff line change 1919//!
2020//! ```toml
2121//! [dependencies]
22- //! async_zip = { version = "0.0.16 ", features = ["full"] }
22+ //! async_zip = { version = "0.0.17 ", features = ["full"] }
2323//! ```
2424//!
2525//! ### Feature Flags
Original file line number Diff line number Diff line change 44#[ cfg( feature = "chrono" ) ]
55use chrono:: { TimeZone , Utc } ;
66
7- use crate :: { ZipDateTime , ZipDateTimeBuilder } ;
7+ use crate :: ZipDateTimeBuilder ;
88
99#[ test]
1010#[ cfg( feature = "chrono" ) ]
You can’t perform that action at this time.
0 commit comments