Skip to main content

beam/
lib.rs

1pub mod ack;
2mod tokio_time;
3mod tokio_spawn;
4pub mod actor;
5pub mod adapters;
6mod dup;
7#[doc(hidden)]
8pub mod message; // pub for benchmarking
9pub mod metrics;
10
11#[cfg(not(target_arch = "wasm32"))]
12pub mod migration;
13
14mod node;
15mod router;
16#[cfg(feature = "webrtc")]
17mod stun;
18pub mod types;
19mod utils;
20pub use dup::Dup;
21pub mod sea;
22pub use node::{Config, Node};
23pub use types::Value;
24
25#[cfg(target_arch = "wasm32")]
26pub mod wasm;
27
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;