1
2
3
4
5
6
7
8
use lu_formats::files::luz::parse_luz;
use nom::Finish;

pub fn dump_luz(path: &str) {
    let bytes = std::fs::read(path).expect("Failed to read file");
    let (_, luz) = parse_luz(&bytes).finish().expect("Failed to parse LUZ");
    println!("{}", serde_json::to_string(&luz).unwrap());
}