pakige 0.1.1

[UNFINISHED] A library crate to parse various Linux package formats into highly structured data.
Documentation
use std::fs::File;
use std::io::prelude::*;
use std::path::Path;
use std::str::FromStr;

use  pakige::deb::*;

fn main ()
{
    // Create a path to the desired file
    let path = Path::new("test.control");
    let display = path.display();

    // Open the path in read-only mode, returns `io::Result<File>`
    let mut file = match File::open(&path) {
        Err(why) => panic!("couldn't open {}: {}", display, why),
        Ok(file) => file,
    };

    // Read the file contents into a string, returns `io::Result<usize>`
    let mut s = String::new();
    match file.read_to_string(&mut s) {
        Err(why) => panic!("couldn't read {}: {}", display, why),
        Ok(_) => ()
    }

    // let hewwo = BinaryDeb::from_str(&s);
    // match hewwo
    // {
    //     Ok(x) => println!("{}", x.architecture),
    //     Err(x) => println!("{}", x)
    // };
    //println!("{}", s);

}