Rust implementation and BOAWP data validation tool https://boawp.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
372 B

use boawp_validator::*;
use std::{env, fs::File, io::Error, io::BufReader};
fn main() -> Result<(), Error> {
let args: Vec<String> = env::args().collect();
let file = File::open(&args[1])?;
let mut reader = BufReader::with_capacity(12, file);
let decoded = validate(&mut reader)?;
println!("Decoded from {}: \n{:?}", &args[1], &decoded);
Ok(())
}