readcon-core 0.17.1

An oxidized single and multiple CON file reader and writer with FFI bindings for ergonomic C/C++ usage. Implements CON spec v3.
Documentation
1
2
3
4
5
6
7
8
//! Print ok or the error text for one CON path.
fn main() {
    let path = std::env::args().nth(1).expect("path");
    match readcon_core::iterators::read_all_frames(std::path::Path::new(&path)) {
        Ok(frames) => println!("ok {}", frames.len()),
        Err(err) => println!("err {err}"),
    }
}