trz-gateway-common 0.1.5

Secure Proxy / Agents implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use tonic_build::Config;

const PROTOS: &[&str] = if cfg!(debug_assertions) {
    &["src/protos/health.proto", "src/protos/tests.proto"]
} else {
    &["src/protos/health.proto"]
};

fn main() {
    let mut config = Config::new();
    config.boxed(".terrazzo.remote.tests.Expression.operation");
    tonic_build::configure()
        .build_client(true)
        .compile_protos_with_config(config, PROTOS, &["src/"])
        .unwrap();
}