rscel 1.0.2

Cel interpreter in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;

fn main() {
    println!("cargo::rustc-check-cfg=cfg(test_protos)");
    println!("cargo:rerun-if-env-changed=RSCEL_TEST_PROTO");

    if let Ok(_) = env::var("RSCEL_TEST_PROTO") {
        println!("cargo:rustc-cfg=test_protos");
        println!("cargo:rustc-cfg=protobuf");
        protobuf_codegen::Codegen::new()
            .protoc()
            .include("test/protos")
            .inputs(["test/protos/test.proto"])
            .cargo_out_dir("test_protos")
            .run_from_script();
    }
}