Crates.io | act-locally |
lib.rs | act-locally |
version | 0.1.1 |
source | src |
created_at | 2024-11-26 20:11:13.866517 |
updated_at | 2024-11-26 20:14:47.6538 |
description | Simple single-threaded async actors with ordinary functions as handlers and plainly typed messages |
homepage | |
repository | https://github.com/micahscopes/act-locally |
max_upload_size | |
id | 1462262 |
size | 73,363 |
Simple single-threaded async actors with ordinary functions as handlers and plainly typed messages.
In that spirit, act-locally
was created with two primary goals:
Simplicity in handler definition and message types: Use ordinary Rust functions as handlers, reducing boilerplate and making your code more intuitive. Use ordinary types as message/return types.
Support for !Send
/!Sync
state: Leverage thread-local async executors so that shared state doesn't need to be thread-safe.
These features allow for more natural Rust code within an actor model, and enable use cases that many other actor frameworks don't support out of the box.
smol
for async runtimetracing
for observabilityLicensed under MIT. See LICENSE for details.