symbiotic-relay-client

Crates.iosymbiotic-relay-client
lib.rssymbiotic-relay-client
version0.3.0
created_at2025-08-21 17:42:49.199055+00
updated_at2025-10-21 10:24:21.192818+00
descriptionRust gRPC client for Symbiotic Relay
homepagehttps://github.com/symbioticfi/relay-client-rs
repositoryhttps://github.com/symbioticfi/relay-client-rs
max_upload_size
id1805086
size363,341
Algys (algys)

documentation

https://docs.rs/symbiotic-relay-client

README

Symbiotic Relay Client (Rust)

Rust gRPC client for the Symbiotic Relay. Code is generated with buf using prost + tonic. Generated modules live under crate::generated.

Installation

Add this to your Cargo.toml:

[dependencies]
symbiotic-relay-client = "0.3.0"

Using Development/Nightly Versions

If you want to use the latest development version instead of a stable release, you can use a git dependency:

[dependencies]
symbiotic-relay-client = { git = "https://github.com/symbioticfi/relay-client-rs", rev = "9f35b8e" }

Replace 9f35b8e with the specific commit hash you want to use. You can also use:

  • branch = "main" for the latest main branch
  • tag = "v0.3.0" for a specific release tag

Usage

use symbiotic_relay_client::generated::api::proto::v1::symbiotic_api_service_client::SymbioticApiServiceClient;
use tonic::transport::Endpoint;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let channel = Endpoint::from_shared("http://localhost:8080")?.connect().await?;
    let mut client = SymbioticApiServiceClient::new(channel);

    // Use the client; e.g. see examples for requests and streaming usage
    Ok(())
}

For more usage (requests, streaming, helpers), see examples/basic_usage.rs in the examples directory.

Development

Run scripts/update-proto.sh to fetch upstream proto and regenerate; run cargo build to compile.

Commit count: 8

cargo fmt