| Crates.io | actor12 |
| lib.rs | actor12 |
| version | 0.0.5 |
| created_at | 2025-08-30 23:36:02.43998+00 |
| updated_at | 2025-09-20 20:22:29.287271+00 |
| description | A lightweight actor framework for Rust with async support |
| homepage | |
| repository | https://github.com/s-panferov/actor12 |
| max_upload_size | |
| id | 1818021 |
| size | 435,369 |
A lightweight, high-performance actor framework for Rust built on Tokio. This is a standalone version of the actor system extracted from the Runy project.
Add this to your Cargo.toml:
[dependencies]
actor12 = "0.0.4"
tokio = { version = "1", features = ["full"] }
anyhow = "1.0"
futures = "0.3"
For complete examples and API documentation, see the documentation.
Run the examples to see the framework in action:
# Simple echo server
cargo run --example echo_server
# Counter with state management
cargo run --example simple_counter
# Multiple message types with Handler trait
cargo run --example handler_pattern
# Dynamic dispatch and routing
cargo run --example dynamic_dispatch
# Ping-pong between actors (see examples/ directory)
cargo run --example ping_pong
# Bank account with transactions
cargo run --example bank_account
# Worker pool pattern
cargo run --example worker_pool
The Actor12 framework is built around several key concepts:
Envelope<T, R> or Handler<M> patternsFor detailed explanations and examples, see the API documentation.
cargo test
This project inherits the license from the original Runy project.