1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
//! This crate provides direct access to files within a Debian archive. //! //! # Features //! //! - [x] Reading files from archives //! - [x] Extracting files from archives //! - [ ] Writing new debian archives //! //! # Examples //! //! ```rust,no_run //! 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); //! } mod archive; pub use self::archive::*;