post-cortex-proto 0.3.1

Protobuf + tonic-generated wire types for post-cortex. Domain-neutral; safe to depend on from gRPC clients without pulling the full server stack.
Documentation

post-cortex-proto

Crates.io Docs.rs License: MIT

Protobuf + tonic-generated wire types for post-cortex.

Single source of truth for the post-cortex gRPC schema (pcx.v1). External Rust gRPC clients can depend on this crate alone — it pulls prost, prost-types, and tonic (with default transport features), but not the post-cortex-daemon server runtime or rmcp.

Install

[dependencies]
post-cortex-proto = "0.2"

Example

use post_cortex_proto::pb::post_cortex_client::PostCortexClient;
use post_cortex_proto::pb::HealthRequest;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut client = PostCortexClient::connect("http://127.0.0.1:51900").await?;
    let response = client.health(HealthRequest {}).await?;
    println!("daemon health: {:?}", response.into_inner());
    Ok(())
}

License

MIT — see LICENSE.