Crates.io | munzip |
lib.rs | munzip |
version | 0.1.2 |
source | src |
created_at | 2024-06-07 20:35:54.621812 |
updated_at | 2024-06-18 03:47:15.228212 |
description | minimal deflate-only unzip library |
homepage | https://github.com/computermouth/niveluno/tree/master/munzip |
repository | https://github.com/computermouth/niveluno |
max_upload_size | |
id | 1265157 |
size | 18,951 |
mμnzip is a port of JUnzip to Rust.
mμnzip exclusively supports STORE
and DEFLATE
. Support for ZLIB
was intentionally omitted.
let zi = munzip::IterableArchive::new(&mut input).unwrap();
for entry in zi {
let mut entry = entry.unwrap();
let filename = entry.filename();
let buffer = entry.buffer().unwrap();
write::write_file(&filename, &buffer).unwrap();
}
let mut zi = munzip::SearchableArchive::new(&mut input).unwrap();
let filename = "munzip/Cargo.toml";
let cargo_toml = zi.by_name(filename).unwrap().unwrap();
write::write_file(&"Cargo.toml".to_owned(), &cargo_toml).unwrap();
Method | Dependencies | Size | Speed |
---|---|---|---|
mμnzip | 2 | 419K | 0.327s |
zip | 27 | 491K | 0.158s |
unzip | 2 | 2.1M | 0.286s |
CONCLUSIONS:
😐👍
NOTES: