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
| Wait for response | Send only | |
|---|---|---|
| Actix | 1548 ms | 14 ms |
| Xactor | 930 ms | 18 ms |
Installation
Xactor require async-trait on useland
With cargo add installed run:
We also provide a set of "tokio-runtime" features instead of async-std.
to use it you need activate feautre: runtime-tokio and desable default.
You can edit your Cargo.toml has following:
xactor = { version = "x.x.x", features = ["runtime-tokio"], default-features = false }