Crate partialzip

Source
Expand description

partialzip is a crate to download single files from online zip archives or list zip content.

The main goal is to save time and memory by only downloading and extracting what you need instead of the whole zip archive.

It fetches first the zip data structures and then download only the relevant parts of the archive and proceed to decompress it.

§Examples

use partialzip::PartialZip;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let pz = PartialZip::new(&"https://your_url")?;
    let files = pz.list_names();
    let content = pz.download(&"yourfile")?;
    Ok(())
}

Re-exports§

pub use partzip::PartialReader;
pub use partzip::PartialZip;
pub use partzip::PartialZipError;
pub use partzip::PartialZipFileDetailed;

Modules§

partzip
Core module for the partialzip crate