| Crates.io | symbiotic-relay-client |
| lib.rs | symbiotic-relay-client |
| version | 0.3.0 |
| created_at | 2025-08-21 17:42:49.199055+00 |
| updated_at | 2025-10-21 10:24:21.192818+00 |
| description | Rust gRPC client for Symbiotic Relay |
| homepage | https://github.com/symbioticfi/relay-client-rs |
| repository | https://github.com/symbioticfi/relay-client-rs |
| max_upload_size | |
| id | 1805086 |
| size | 363,341 |
Rust gRPC client for the Symbiotic Relay. Code is generated with buf using prost + tonic. Generated modules live under crate::generated.
Add this to your Cargo.toml:
[dependencies]
symbiotic-relay-client = "0.3.0"
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 branchtag = "v0.3.0" for a specific release taguse 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.
Run scripts/update-proto.sh to fetch upstream proto and regenerate; run cargo build to compile.