rs-utcp 0.3.0

Rust implementation of the Universal Tool Calling Protocol (UTCP).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    println!("cargo:rerun-if-changed=src/grpcpb/utcp.proto");
    let out_dir = std::path::Path::new("src/grpcpb/generated");
    if !out_dir.exists() {
        std::fs::create_dir_all(out_dir).expect("failed to create gRPC output directory");
    }
    tonic_build::configure()
        .build_server(true)
        .out_dir(out_dir)
        .compile(&["src/grpcpb/utcp.proto"], &["src/grpcpb"])
        .expect("Failed to compile gRPC protos");
}