Compstream
https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
Features
- Stream on the fly an archive from multiple AsyncRead objects.
- Single read / seek free implementation (the CRC and file size are calculated while streaming and are sent afterwards).
- tokio
AsyncRead
/ AsyncWrite
compatible.
Supported compression formats:
- stored (i.e. none)
- deflate
- bzip2
- zstd
- xz
Todos
- implement zip64
- implement some zip features (unix time, file comments, ...)
- add more cargo features like for compressors selection
Examples
- How to create a zip archive
- How to stream an aschive with Hyper
.
Disclaimer
This implementation is inspired by :
- https://github.com/scotow/zipit and
- https://github.com/zip-rs/zip