Skip to main content

beam/
lib.rs

1pub mod ack;
2pub mod actor;
3pub mod adapters;
4mod dup;
5pub mod mailbox;
6#[doc(hidden)]
7pub mod message; // pub for benchmarking
8pub mod metrics;
9mod tokio_spawn;
10mod tokio_time;
11
12#[cfg(not(target_arch = "wasm32"))]
13pub mod migration;
14
15mod node;
16mod router;
17#[cfg(feature = "webrtc")]
18mod stun;
19pub mod types;
20mod utils;
21pub use dup::Dup;
22pub mod sea;
23pub use node::{Config, Node};
24pub use types::Value;
25
26#[cfg(target_arch = "wasm32")]
27pub mod wasm;
28
29#[cfg(all(target_arch = "wasm32", test))]
30mod wasm_tests;
31// Include README.md as doctests — all ```rust code blocks in README are
32// compiled and run when `cargo test --doc` (or `cargo test`) is executed.
33// The struct only exists during doctest collection, so it's invisible in
34// the public API and has zero runtime cost.
35#[cfg(not(target_arch = "wasm32"))]
36#[doc = include_str!("../README.md")]
37#[cfg(doctest)]
38pub struct ReadmeDoctests;