spiffe-rustls 0.1.0

SPIFFE/SPIRE integration for rustls
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// spiffe-rustls/build.rs
fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Only generate code when grpc examples are enabled.
    if std::env::var("CARGO_FEATURE_GRPC_EXAMPLES").is_err() {
        return Ok(());
    }

    tonic_prost_build::configure()
        .build_server(true)
        .build_client(true)
        .compile_protos(&["proto/helloworld.proto"], &["proto"])?;

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