acktor
A pure-Rust actor framework built on top of the Tokio async runtime, inspired by Actors with Tokio by Alice Ryhl.
About
acktor is an actor framework for Rust that builds on the patterns described in Alice Ryhl's blog post and extends them into a structured library. Each actor runs as an independent tokio task with its own mailbox, processing messages one at a time. Actors communicate exclusively through message passing — there is no shared mutable state. The framework provides lifecycle hooks, supervision, an observer pattern, and support for periodic tasks.
Installation
Install acktor by adding it to your Cargo.toml:
[]
= "1.0"
Requires Rust 1.85 or later.
Quick Start
An example Counter actor that handles arithmetic messages might be the following:
use ;
// 1. Define your actor
;
// 2. Define a message
// 3. Implement the handler
async
License
This project is licensed under MIT.