websocket_base/
lib.rs

1//! This is part of `websocket` crate that is independent from `hyper`.
2//! It contains code for processing WebSocket streams,
3//! (after HTTP upgrade already happened)
4//! WebSocket message definition, some error type.
5//!
6//! For now it still optionally depends on `futures 0.1` and `tokio-io 0.1`, but that's going to
7//! be extracted to a separate crate, if `rust-websocket`'s depelopment continues.
8//!
9//! Note that there is no normal example of usage so far. See usual `websocket` crate or
10//! alternative like `tungstenite`.
11
12#![allow(clippy::match_ref_pats, clippy::needless_doctest_main)]
13extern crate byteorder;
14
15#[cfg(feature = "async")]
16extern crate bytes;
17#[cfg(feature = "async")]
18extern crate futures;
19extern crate rand;
20#[macro_use]
21extern crate bitflags;
22
23#[cfg(any(feature = "sync-ssl", feature = "async-ssl"))]
24extern crate native_tls;
25
26#[cfg(feature = "async")]
27extern crate tokio_codec;
28#[cfg(feature = "async")]
29extern crate tokio_io;
30#[cfg(feature = "async")]
31extern crate tokio_tcp;
32#[cfg(feature = "async-ssl")]
33extern crate tokio_tls;
34
35#[cfg(feature = "async")]
36pub mod codec;
37pub mod dataframe;
38pub mod header;
39pub mod message;
40pub mod result;
41pub mod stream;
42pub mod ws;
43
44pub use crate::message::Message;
45pub use crate::message::OwnedMessage;