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