async_zip_futures
An asynchronous ZIP archive reading/writing crate powered by futures-rs.
Forked from rs-async-zip. tokio was replaced with futures-rs.
Features
- Support for Stored compression method.
- Support for writing streams using data descriptors.
- Initial support for ZIP64 writing.
- Aims for reasonable specification compliance.
Installation & Basic Usage
[]
= { = "0.0.12", = ["full"] }
A (soon to be) extensive list of examples can be found under the /examples directory.
Feature Flags
full- Enables all below features.chrono- Enables support for parsing dates viachrono.
Writing
use ;
use AsyncWriteExt;
use File;
use TokioAsyncReadCompatExt;
...
let mut file = create.await.unwrap.compat;
let mut writer = new;
let data = b"This is an example file.";
let builder = new;
let mut entry_writer = writer.write_entry_stream.await.unwrap;
entry_writer.write_all.await.unwrap;
entry_writer.close.await.unwrap;
writer.close.await.unwrap;