Skip to main content

rusm_otp/
lib.rs

1//! `rusm-otp` — the Wasm-free Erlang/OTP core of RUSM.
2//!
3//! Lightweight processes (Tokio tasks), each with a message mailbox, over a
4//! sharded process table. A process is killed by aborting its task — Tokio gives
5//! us that handle for free — so a process carries just one channel. This crate
6//! must never depend on or reference Wasmtime — the actor model stands alone;
7//! Wasm is a separate, optional backend (`rusm-wasm`). See `docs/01-architecture.md`.
8
9mod exit;
10mod lifecycle;
11mod message;
12mod net;
13mod pid;
14mod runtime;
15mod stream;
16mod supervisor;
17
18pub use exit::{ExitReason, MonitorRef};
19pub use lifecycle::LogLevel;
20pub use message::{Message, Received};
21pub use pid::Pid;
22pub use runtime::{Context, ProcessHandle, ProcessInfo, Runtime, TimerRef};
23pub use stream::{stream, stream_with_capacity, StreamHandle, StreamWriter};
24pub use supervisor::{Strategy, Supervisor};