protoc-gen-rust-temporal 0.1.1

protoc plugin that emits a typed Rust Temporal client from temporal.v1.* annotated services
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::io::Result;

fn main() -> Result<()> {
    let proto_root = "proto";
    println!("cargo:rerun-if-changed={proto_root}");

    let mut config = prost_build::Config::new();
    config.compile_protos(
        &["proto/temporal/v1/temporal.proto"],
        &[proto_root, "proto/temporal/api/enums/v1"],
    )?;
    Ok(())
}