| Crates.io | theater-client |
| lib.rs | theater-client |
| version | 0.2.1 |
| created_at | 2025-06-23 14:05:58.110202+00 |
| updated_at | 2025-06-24 15:20:45.124628+00 |
| description | Client library for Theater actor system |
| homepage | https://colinrozzi.github.io/theater |
| repository | https://github.com/colinrozzi/theater |
| max_upload_size | |
| id | 1722959 |
| size | 105,317 |
Client library for the Theater WebAssembly actor system.
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.
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(())
}
For complete documentation, see the Theater Guide.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.