Reference · reference
archive module
use archive extracts archives without an external tar or unzip binary. Every function takes the archive path and a destination directory, and returns Result[int, string] where the integer is the number of entries extracted. Fetch archives with the http module and verify them with the hash module before extracting.
extract_zip
rust
extract_zip
Extracts a .zip file into dest.
extract_tar_gz
rust
extract_tar_gz
Extracts a gzip-compressed tar file into dest.
extract
rust
extract
Chooses the format from the file extension and extracts. It accepts .zip, .tar.gz and .tgz, and fails on any other extension.
rust
use archive
let entries = extract?