3 releases
0.1.2 | Jun 18, 2024 |
---|---|
0.1.1 | Jun 7, 2024 |
0.1.0 | Jun 7, 2024 |
#225 in Compression
17KB
320 lines
mμnzip
mμnzip is a port of JUnzip to Rust.
mμnzip exclusively supports STORE
and DEFLATE
. Support for ZLIB
was intentionally omitted.
features
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();
why?
- To be small.
- To have a simple unzip library with minimal (2)(inflate,adler32) dependencies.
- For fun and practice.
stats
Method | Dependencies | Size | Speed |
---|---|---|---|
mμnzip | 2 | 419K | 0.327s |
zip | 27 | 491K | 0.158s |
unzip | 2 | 2.1M | 0.286s |
CONCLUSIONS:
- is it very fast? no
- is it very small? no
- very featureful? no
😐👍
NOTES:
Dependencies
~81KB