{"id":22762290,"url":"https://github.com/computermouth/munzip","last_synced_at":"2025-03-30T09:21:38.183Z","repository":{"id":243153566,"uuid":"811161146","full_name":"computermouth/munzip","owner":"computermouth","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-07T20:00:01.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T11:34:17.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/computermouth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-06T04:03:00.000Z","updated_at":"2024-06-07T20:00:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"5413369d-3f3a-4847-a9d7-4cd764837403","html_url":"https://github.com/computermouth/munzip","commit_stats":null,"previous_names":["computermouth/munzip"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computermouth%2Fmunzip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computermouth%2Fmunzip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computermouth%2Fmunzip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computermouth%2Fmunzip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/computermouth","download_url":"https://codeload.github.com/computermouth/munzip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246297538,"owners_count":20754805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-11T10:07:19.866Z","updated_at":"2025-03-30T09:21:38.168Z","avatar_url":"https://github.com/computermouth.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# mμnzip\n\n**mμnzip** is a port of [JUnzip](https://github.com/jokkebk/JUnzip) to Rust.\n\nWhile **JUnzip** supports `STORE`, and optionally `DEFLATE` and/or `ZLIB`, **mμnzip** foregoes `ZLIB` support.\n\n### features\n\n[iterable](examples/iterate.rs)\n\n```rust\nlet zi = munzip::IterableArchive::new(\u0026mut input).unwrap();\n\nfor entry in zi {\n    let mut entry = entry.unwrap();\n    let filename = entry.filename();\n    let buffer = entry.buffer().unwrap();\n    write::write_file(\u0026filename, \u0026buffer).unwrap();\n}\n```\n\n[searchable](examples/search.rs)\n\n```rust\nlet mut zi = munzip::SearchableArchive::new(\u0026mut input).unwrap();\n\nlet filename = \"munzip/Cargo.toml\";\nlet cargo_toml = zi.by_name(filename).unwrap().unwrap();\nwrite::write_file(\u0026\"Cargo.toml\".to_owned(), \u0026cargo_toml).unwrap();\n```\n\n### why?\n\n- To be small.\n- To have a simple unzip library with minimal (2)([inflate](https://crates.io/crates/inflate),[adler32](https://crates.io/crates/adler32/1.2.0)) dependencies.\n- For fun and practice.\n\n### stats\n\n| Method  | Dependencies | Size | Speed   |\n| ------- | ------------ | ---- | ------- |\n| mμnzip  | 2            | 419K | 0.327s  |\n| zip     | 27           | 491K | 0.158s  |\n| unzip   | 2            | 2.1M | 0.286s  |\n\nCONCLUSIONS:\n\n- is it very fast? no\n- is it very small? no\n- very featureful? no\n\n😐👍\n\nNOTES:\n\n- 'zip' refers to the [zip](https://crates.io/crates/zip) crate\n- 'zip' was set to `default-features = false, features = [\"deflate\"]`\n- 'unzip' refers to debian's [unzip](https://packages.debian.org/bookworm/unzip) package\n- 'unzip' size includes libc and libbz2\n- all binaries are stripped\n- `Speed` was measured by unzipping an archive of this entire repository on my laptop, so.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputermouth%2Fmunzip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomputermouth%2Fmunzip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputermouth%2Fmunzip/lists"}