Xactor is a rust actors framework based on async-std
Documentation
- GitHub repository
- Cargo package
- Minimum supported Rust version: 1.39 or later
Features
- Async actors.
- Actor communication in a local context.
- Using Futures for asynchronous message handling.
- Typed messages (No
Anytype). Generic messages are allowed.
Examples
use *;
;
;
async
Performance
https://github.com/sunli829/xactor-benchmarks
Installation
Xactor requires async-trait on userland.
With cargo add installed, run:
We also provide the tokio runtime instead of async-std. To use it, you need to activate runtime-tokio and disable default features.
You can edit your Cargo.toml as follows:
= { = "x.x.x", = ["runtime-tokio"], = false }