readcon-core 0.4.0

An oxidized single and multiple CON file reader and writer with FFI bindings for ergonomic C/C++ usage.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
    // Cap'n Proto schema compilation (behind rpc feature)
    #[cfg(feature = "rpc")]
    {
        let schema_path = std::path::Path::new("schema/ReadCon.capnp");
        if schema_path.exists() {
            capnpc::CompilerCommand::new()
                .file(schema_path)
                .run()
                .expect("Cap'n Proto schema compilation failed");
        } else {
            println!(
                "cargo:warning=Cap'n Proto schema not found at {}, RPC stubs will not be generated",
                schema_path.display()
            );
        }
    }
}