{"id":16037840,"url":"https://github.com/joseluisq/unzpack","last_synced_at":"2025-04-05T05:41:41.973Z","repository":{"id":57671178,"uuid":"264550148","full_name":"joseluisq/unzpack","owner":"joseluisq","description":"A library to persist ZIP content bytes into a file and extract its content on file system.","archived":false,"fork":false,"pushed_at":"2020-05-25T09:43:49.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-22T14:23:11.731Z","etag":null,"topics":["rust-lang","unzip","zip"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joseluisq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-16T23:56:43.000Z","updated_at":"2020-05-25T09:43:52.000Z","dependencies_parsed_at":"2022-09-10T18:02:36.865Z","dependency_job_id":null,"html_url":"https://github.com/joseluisq/unzpack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Funzpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Funzpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Funzpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Funzpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joseluisq","download_url":"https://codeload.github.com/joseluisq/unzpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246679067,"owners_count":20816402,"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":["rust-lang","unzip","zip"],"created_at":"2024-10-08T22:21:45.775Z","updated_at":"2025-04-05T05:41:41.941Z","avatar_url":"https://github.com/joseluisq.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unzpack [![Build Status](https://travis-ci.com/joseluisq/unzpack.svg?branch=master)](https://travis-ci.com/joseluisq/unzpack) [![Crates.io](https://img.shields.io/crates/v/unzpack)](https://crates.io/crates/unzpack) [![Released API docs](https://docs.rs/unzpack/badge.svg)](https://docs.rs/unzpack)\n\n\u003e A library to persist ZIP content bytes into a file and extract its content on file system.\n\n**Unzpack** is just a helper which persists ZIP bytes content on file system, then extract its content into a specific directory path and finally deletes current ZIP file.\n\nFor example, it can be useful when ZIP content is provided via [include_bytes!](https://doc.rust-lang.org/std/macro.include_bytes.html) macro.\n\n## Usage\n\n```toml\n[dependencies]\nunzpack = \"0.1\"\n```\n\n```rust\nuse unzpack::Unzpack;\n\nconst BYTES: \u0026[u8] = include_bytes!(\"data/assets.zip\");\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    Unzpack::unpack(\n        BYTES,              // Zip bytes\n        \"./out-file.zip\",   // Output Zip file \n        \"./out-dir\",        // Output extraction directory \n    )?;\n\n    Ok(())\n}\n```\n\nView [code example](./examples).\n\n## Contributions\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in current work by you, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.\n\nFeel free to send some [Pull request](https://github.com/joseluisq/unzpack/pulls) or [issue](https://github.com/joseluisq/unzpack/issues).\n\n## License\n\nThis work is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).\n\n© 2020 [Jose Quintana](https://git.io/joseluisq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Funzpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoseluisq%2Funzpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Funzpack/lists"}