2025-11-26 01:51:13 +00:00
|
|
|
# swactor
|
2026-02-06 11:25:37 +00:00
|
|
|
|
2026-02-24 09:12:28 +00:00
|
|
|
Minimal actor runtime for Rust. One trait, one message type.
|
|
|
|
|
Single-threaded (`tick()`) or multi-threaded (`run()`).
|
2026-02-06 14:54:56 +00:00
|
|
|
|
2026-02-24 09:12:28 +00:00
|
|
|
## Description
|
2026-02-06 11:25:37 +00:00
|
|
|
|
2026-02-24 09:12:28 +00:00
|
|
|
Core runtime is `src/`. Actors implement `ActorInterface` (in `actor.rs`),
|
|
|
|
|
interact through `Ctx` (in `runtime.rs`), and run on worker threads (`worker.rs`).
|
2026-02-06 11:25:37 +00:00
|
|
|
|
2026-02-24 09:12:28 +00:00
|
|
|
`crates/` builds upward: `std` adds OTP patterns (supervision, monitoring, groups),
|
|
|
|
|
`distribution` adds clustering, everything else composes from there.
|
2026-02-06 11:25:37 +00:00
|
|
|
|
2026-02-24 09:12:28 +00:00
|
|
|
## Dev commands
|
2026-02-06 11:25:37 +00:00
|
|
|
|
2026-06-25 12:30:18 +00:00
|
|
|
`cargo xtask --help` for the basic test command.
|
2026-02-06 11:25:37 +00:00
|
|
|
|
2026-02-24 09:12:28 +00:00
|
|
|
## Testing
|
2026-02-06 17:12:04 +00:00
|
|
|
|
|
|
|
|
```
|
2026-02-24 09:12:28 +00:00
|
|
|
cargo check --workspace
|
2026-06-25 12:30:18 +00:00
|
|
|
cargo xtask test
|
2026-02-06 17:12:04 +00:00
|
|
|
```
|