1 unstable release
0.1.0 | Oct 1, 2022 |
---|
#1792 in Asynchronous
40KB
992 lines
Aspartam
Minimalistic actor framework based on tokio, inspired by actix.
Aspartam tries to keep it simple and easy to use.
Messages are processed sequentially.
Features
- Asynchronous actors
- Support for typed messages via dynamic dispatch
- Support for asynchronous message handlers, via async-trait
- Actor supervision
Usage
TODO
Aspartam vs Actix
TODO
Why Aspartam
While actix
is great, it makes using async
/await
problematic in message handlers. Workarounds exist but that continues to be a major pain-point.
I decided to create something that feels similar to actix
but requires a lot less hassle and has less complexity overall.
TODO
- Maybe something like
actix
'sRecipient
lib.rs
:
Minimalistic actor framework based on tokio, inspired by actix.
Aspartam tries to keep it simple and easy to use.
Messages are processed sequentially.
Features
- Asynchronous actors
- Support for typed messages via dynamic dispatch
- Support for asynchronous message handlers, via async-trait
- Actor supervision Everything you need, re-exported
Dependencies
~2.8–9MB
~77K SLoC