cargo-binstall/crates/binstalk-downloader/src/download
Jiahao XU e704abe7ac
Use rc-zip-sync for zip extraction (#1942)
* Use rc-zip-sync for zip extraction

Fixed #1080

In this commit, binstalk-downloader is updated to
- first download the zip into a temporary file, since
  there is no correct way to extract zip from a stream.
- then use rc-zip-sync to read from the zip and extract
  it to filesystem.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix returned `ExtractedFiles` in `do_extract_zip`

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix clippy in zip_extraction.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-10-30 00:16:54 +00:00
..
async_extracter.rs Use rc-zip-sync for zip extraction (#1942) 2024-10-30 00:16:54 +00:00
async_tar_visitor.rs Remove dep futures-lite from binstalk-downloader (#1259) 2023-08-08 10:48:12 +00:00
extracted_files.rs Fix clippy errors in cargo v1.73.0 (#1439) 2023-10-06 12:10:42 +00:00
extracter.rs Optimize extract_zip: Use async_zip::read::stream::ZipFileReader to avoid temporary file (#590) 2022-12-12 00:44:34 +00:00
zip_extraction.rs Use rc-zip-sync for zip extraction (#1942) 2024-10-30 00:16:54 +00:00