commy-sdk-rust 0.1.0

Rust client SDK for Commy shared memory coordination system
Documentation

Commy Rust Client SDK

A high-level Rust client for interacting with the Commy shared memory coordination system.

Features

  • WebSocket Secure (WSS) client for remote connections
  • Direct memory-mapping support for local processes
  • Automatic connection management with reconnection
  • Full async/await support with Tokio
  • Multiple authentication methods

Example

use commy_sdk_rust::{Client, auth};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Create a new client
    let client = Client::new("wss://localhost:9000");
    
    // Connect to server
    client.connect().await?;
    
    // Authenticate with a tenant
    client.authenticate("my_tenant", auth::api_key("api_key_value".to_string())).await?;
    
    // Create or get a service
    let _service = client.get_service("my_tenant", "config").await?;
    
    Ok(())
}