Crates.io | debber |
lib.rs | debber |
version | 1.0.0 |
source | src |
created_at | 2024-07-16 21:17:21.512425 |
updated_at | 2024-07-16 21:17:21.512425 |
description | Debian archive reader / extractor: Refreshed |
homepage | |
repository | https://github.com/Strawberry-Foundations/debber |
max_upload_size | |
id | 1305524 |
size | 13,599 |
This Rust crate provides direct access to files within a Debian archive. This crate is used by
our debrep utility to generate the Packages
and
Contents
files for generated apt repositories.
extern crate debarchive;
use debarchive::Archive;
use std::path::Path;
fn main() {
let path = &Path::new("name_version_arch.deb");
let archive = Archive::new(path).unwrap();
archive.data(|entry| {
if let Ok(path) = entry.path() {
println!("data: {}", path.display());
}
});
let control_map = archive.control_map().unwrap();
println!("Control: {:#?}", control_map);
}