rauto 0.3.2

A powerful CLI tool for network device automation using minijinja templates and rneter.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let protoc = protoc_bin_vendored::protoc_bin_path()?;
    unsafe {
        std::env::set_var("PROTOC", protoc);
    }

    tonic_build::configure()
        .build_server(false)
        .compile_protos(
            &["proto/rauto/manager/v1/agent_reporting.proto"],
            &["proto"],
        )?;

    println!("cargo:rerun-if-changed=proto/rauto/manager/v1/agent_reporting.proto");
    Ok(())
}