zap-schema 1.0.0

ZAP Schema Compiler - Zero-Copy Application Protocol with whitespace-significant syntax
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Build script for Cap'n Proto schema compilation.

fn main() {
    // Rerun if schema changes
    println!("cargo:rerun-if-changed=schema/rust/zap.capnp");

    capnpc::CompilerCommand::new()
        .src_prefix("schema/rust")
        .file("schema/rust/zap.capnp")
        .run()
        .expect("capnp compile failed");
}