Skip to main content

tightbeam_ws/
lib.rs

1#![doc = include_str!("../README.md")]
2
3// This module compiles every Rust example of the page under `docs/` that
4// specifies this crate as a doctest, so a renamed item fails the build
5// instead of leaving the page stale.
6#[cfg(doctest)]
7#[doc = include_str!("../../../docs/ws.md")]
8mod docs_ws {}
9
10#[cfg(feature = "testing")]
11pub mod testing;
12
13#[cfg(feature = "socket")]
14pub mod io;
15#[cfg(feature = "socket")]
16pub mod protocol;
17#[cfg(feature = "serve")]
18pub mod serve;
19
20#[cfg(feature = "socket")]
21mod acceptor;
22#[cfg(feature = "socket")]
23mod error;
24
25#[cfg(feature = "socket")]
26pub use error::{Error, Result};
27
28/// Re-export of the underlying messaging framework.
29pub use tightbeam;