theater-client

Crates.iotheater-client
lib.rstheater-client
version0.2.1
created_at2025-06-23 14:05:58.110202+00
updated_at2025-06-24 15:20:45.124628+00
descriptionClient library for Theater actor system
homepagehttps://colinrozzi.github.io/theater
repositoryhttps://github.com/colinrozzi/theater
max_upload_size
id1722959
size105,317
(colinrozzi)

documentation

README

theater-client

Client library for the Theater WebAssembly actor system.

Overview

theater-client provides a Rust client library for interacting with Theater servers. It offers both synchronous and asynchronous APIs for managing actors and streaming events.

Usage

use theater_client::{TheaterClient, ClientConfig};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = TheaterClient::new("http://localhost:8080")?;
    
    // List running actors
    let actors = client.list_actors().await?;
    println!("Running actors: {:#?}", actors);
    
    // Start an actor
    let actor_id = client.start_actor("manifest.toml").await?;
    println!("Started actor: {}", actor_id);
    
    Ok(())
}

Features

  • Async/await support with tokio
  • Type-safe API responses
  • Event streaming capabilities
  • Connection management and retries

For complete documentation, see the Theater Guide.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Commit count: 0

cargo fmt