spire-workload 1.3.1

spire workload api for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    let builder = tonic_build::configure()
        .disable_package_emission()
        .build_server(false);
    let proto_path = std::path::Path::new("./proto/workload.proto");

    // directory the main .proto file resides in
    let proto_dir = proto_path
        .parent()
        .expect("proto file should reside in a directory");

    builder.compile(&[proto_path], &[proto_dir]).unwrap();
}