crates.io Tests on main License Dependency Status Downloads

Actix Telepathy

Inspired by actix-remote and Akka Cluster, Actix Telepathy is an extension to the Rust actor framework Actix. It empowers Rust users to build distributed application within the actor framework.

Notes

So far, we only support single seed nodes. Connecting to different seed nodes can result in unexpected behavior.

Usage

Cargo.toml

toml [dependencies] actix = "0.10" actix-telepathy = "0.4.0"

main.rs

```rust use actixrt; use actixtelepathy::prelude::; use actix::prelude::; use tokio; use std::net::{ToSocketAddrs, SocketAddr};

[actix_rt::main]

async fn main() { let bindaddr = "127.0.0.1:1992".parse().unwrap(); let seednodes = vec![]; let cluster = Cluster::new(bindaddr, seed_nodes);

tokio::signal::ctrl_c().await.unwrap();
println!("Ctrl-C received, shutting down");
System::current().stop();

} ```

Please consider citing this work when you are using it!