xan-actor
Akka-style actor library for Rust, built on tokio. Multiple actor types share
one ActorSystem, addresses route messages with compile-time message-type
checks, and an optional multi-node feature extends the same API across
processes via a xanq broker.
📖 Full documentation: https://xanthorrhizol.github.io/actor/
Install
Default is bounded-channel. Other feature flags:
| Feature | What it does |
|---|---|
bounded-channel |
(default) tokio::sync::mpsc::channel mailboxes |
unbounded-channel |
tokio::sync::mpsc::unbounded_channel mailboxes (mutually exclusive with bounded-channel) |
xan-log |
optional log backend |
multi-node |
cross-process/-machine delivery via a xanq broker — see the wiki's Multi-node page |
Minimal example
use Arc;
use *;
async
For the unbounded variant, multi-node setup, job scheduling, broadcast, lifecycle hooks, and the rest, see the wiki.
License
MIT