Skip to main content

daemon/
lib.rs

1//! Daemon-side library code: cleanup sweeper, nickname dedup saga,
2//! auto-room saga, and the on-disk event persister.
3//!
4//! `link()` is called from the bin to ensure the `inventory` registrations
5//! generated by `#[myko_saga]` / `#[myko_command]` survive dead-code
6//! elimination. Message delivery itself is handled directly by the
7//! `marshal_entities::SendMessage` and `marshal_entities::BroadcastMessage`
8//! commands — there's no saga in the critical path for delivery.
9
10pub mod auto_rooms;
11pub mod cleanup;
12pub mod dedupe_nicknames;
13pub mod persister;
14
15pub fn link() {
16    dedupe_nicknames::link();
17    auto_rooms::link();
18}