sentinel-agent-protocol 0.1.7

Agent protocol and IPC for Sentinel reverse proxy external processors
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Build script for sentinel-agent-protocol
//!
//! Compiles Protocol Buffer definitions for gRPC support.

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Compile the agent protocol proto file
    tonic_build::configure()
        .build_server(true)
        .build_client(true)
        .compile_protos(&["proto/agent.proto"], &["proto/"])?;

    // Rerun if proto files change
    println!("cargo:rerun-if-changed=proto/agent.proto");

    Ok(())
}