bsa 0.2.1

rust library for creating and extracting Bethesda Softworks Archives
Documentation
use std::path::PathBuf;
use std::env;
use std::io::Result;

use bsa::*;


fn main() -> Result<()> {
    let file = env::args()
        .nth(1)
        .map(PathBuf::from)
        .unwrap();

    let bsa: SomeReader<_> = bsa::open(file)?;

    println!("{:?}", bsa.version());
    println!("{:?}", bsa.header());
    Ok(())
}