spiffe-rs 0.1.1

Rust port of spiffe-go with SPIFFE IDs, bundles, SVIDs, Workload API client, federation helpers, and rustls-based SPIFFE TLS utilities.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let protoc = protoc_bin_vendored::protoc_bin_path()?;
    std::env::set_var("PROTOC", protoc);

    tonic_build::configure()
        .build_server(false)
        .compile_well_known_types(true)
        .compile(&["proto/spiffe/workload/workload.proto"], &["proto"])?;

    tonic_build::configure()
        .compile(&["proto/examples/helloworld.proto"], &["proto/examples"])?;
    Ok(())
}