cargo-binstall/crates/binstalk-downloader
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
..
src Use rc-zip-sync for zip extraction (#1942) 2024-10-30 00:16:54 +00:00
Cargo.toml Use rc-zip-sync for zip extraction (#1942) 2024-10-30 00:16:54 +00:00
CHANGELOG.md chore: release (#1878) 2024-08-12 14:22:35 +00:00
LICENSE-APACHE Switch binstalk-downloader license to "Apache-2.0 OR MIT" (#542) 2023-05-19 03:07:58 +00:00
LICENSE-MIT Switch binstalk-downloader license to "Apache-2.0 OR MIT" (#542) 2023-05-19 03:07:58 +00:00