{"id":13439976,"url":"https://github.com/pop-os/debarchive","last_synced_at":"2025-06-27T18:08:19.514Z","repository":{"id":57616968,"uuid":"151473864","full_name":"pop-os/debarchive","owner":"pop-os","description":"Rust crate which provides direct access to files within a Debian archive","archived":false,"fork":false,"pushed_at":"2021-08-05T14:36:09.000Z","size":5,"stargazers_count":13,"open_issues_count":1,"forks_count":5,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-24T04:11:21.278Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pop-os.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-03T20:08:29.000Z","updated_at":"2023-04-05T10:31:17.000Z","dependencies_parsed_at":"2022-08-29T05:31:30.223Z","dependency_job_id":null,"html_url":"https://github.com/pop-os/debarchive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pop-os%2Fdebarchive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pop-os%2Fdebarchive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pop-os%2Fdebarchive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pop-os%2Fdebarchive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pop-os","download_url":"https://codeload.github.com/pop-os/debarchive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248021156,"owners_count":21034594,"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-07-31T03:01:18.654Z","updated_at":"2025-04-10T02:41:05.587Z","avatar_url":"https://github.com/pop-os.png","language":"Rust","funding_links":[],"categories":["Libraries","库","库 Libraries"],"sub_categories":["Packaging formats","包装格式","包格式化 Packaging formats"],"readme":"# debarchive\n\nThis Rust crate provides direct access to files within a Debian archive. This crate is used by\nour [debrep utility](https://github.com/pop-os/debrepbuild) to generate the `Packages` and\n`Contents` files for generated apt repositories.\n\n## Features\n\n- [x] Reading files from archives\n- [x] Extracting files from archives\n- [ ] Writing new debian archives\n\n## Examples\n\n```rust\nextern crate debarchive;\n\nuse debarchive::Archive;\nuse std::path::Path;\n\nfn main() {\n    let path = \u0026Path::new(\"name_version_arch.deb\");\n    let archive = Archive::new(path).unwrap();\n    archive.data(|entry| {\n        if let Ok(path) = entry.path() {\n            println!(\"data: {}\", path.display());\n        }\n    });\n\n    let control_map = archive.control_map().unwrap();\n    println!(\"Control: {:#?}\", control_map);\n}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpop-os%2Fdebarchive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpop-os%2Fdebarchive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpop-os%2Fdebarchive/lists"}