camel-component-validator 0.7.6

Validator component for rust-camel (XSD, JSON Schema, YAML)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() -> Result<(), Box<dyn std::error::Error>> {
    unsafe {
        std::env::set_var("PROTOC", protoc_bin_vendored::protoc_bin_path()?);
    }

    tonic_prost_build::configure()
        .build_server(false)
        .compile_protos(&["proto/xml_bridge.proto"], &["proto"])?;

    println!("cargo:rerun-if-changed=proto/xml_bridge.proto");
    Ok(())
}