a2a-rs 0.5.0

Rust implementation of the Agent-to-Agent (A2A) Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn main() -> Result<(), Box<dyn std::error::Error>> {
    println!("cargo:rerun-if-changed=proto/a2a.proto");
    println!("cargo:rerun-if-changed=build.rs");

    // Tell it to use the protoc binary provided by protoc-bin-vendored
    unsafe {
        std::env::set_var("PROTOC", protoc_bin_vendored::protoc_bin_path().unwrap());
    }

    // Generate connectrpc client and server code, along with buffa message types
    connectrpc_build::Config::new()
        .files(&["proto/a2a.proto"])
        .includes(&["proto"])
        .compile()?;

    Ok(())
}