Cra
Simple library for extracting/archiving in multiple formats fully in memory
Features
- effortlessly read archives and iterate over their entries
- support for 7z, zip and tar
- fully in memory
- create archives in any supported format
Usage
Examples
Read and iterate over archive:
use ;
let mut archive = new.unwrap;
for entry in archive
Create a zip archive with a directory and a file:
use ;
let mut writer = new;
writer.push;
writer.push;
let finished_archive = writer.archive.unwrap; // Vec<u8>