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
Any
type). 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 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 }