cargo-binstall/crates/binstalk-downloader/src
Jiahao XU 3b1a7f2c78
Optimize extract_zip: Use async_zip::read::stream::ZipFileReader to avoid temporary file (#590)
* Add new dep async_zip v0.0.9 to binstalk-downloader
   with features "gzip", "zstd", "xz", "bzip2", "tokio".
* Refactor: Simplify `async_extracter::extract_*` API
* Refactor: Create newtype wrapper of `ZipError`
   so that the zip can be upgraded without affecting API of this crate.
* Enable feature fs of dep tokio in binstalk-downloader
* Rewrite `extract_zip` to use `async_zip::read::stream::ZipFileReader`
   which avoids writing the zip file to a temporary file and then read it
   back into memory.
* Refactor: Impl new fn `await_on_option` and use it
* Optimize `tokio::select!`: Make them biased and check for cancellation first
  to make cancellation takes effect ASAP.
* Rm unused dep zip from binstalk-downloader

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-12-12 00:44:34 +00:00
..
download Optimize extract_zip: Use async_zip::read::stream::ZipFileReader to avoid temporary file (#590) 2022-12-12 00:44:34 +00:00
download.rs Optimize extract_zip: Use async_zip::read::stream::ZipFileReader to avoid temporary file (#590) 2022-12-12 00:44:34 +00:00
lib.rs Refactor: Extract new crate binstalk-{signal, downloader} (#518) 2022-11-11 04:02:54 +00:00
remote.rs Minor refactor and optimization (#543) 2022-11-19 20:00:27 +13:00