data_signals/lib.rs
1//! # data-signals
2//!
3//! Parent crate for the [`live-data`] ecosystem. Pulls in the
4//! protocol types crate by default and pulls in the publisher
5//! ([`live-feed`]) or consumer ([`live-stream`]) runtime via Cargo
6//! features.
7//!
8//! ## Features
9//!
10//! - `types` *(default)* - re-exports [`live-data`]'s protocol types.
11//! - `publisher` - adds [`live-feed`].
12//! - `consumer` - adds [`live-stream`].
13//! - `all` - both publisher and consumer.
14//!
15//! Single-line usage:
16//!
17//! ```toml
18//! data-signals = "0.1" # protocol types
19//! data-signals = { version = "0.1", features = ["consumer"] }
20//! ```
21//!
22//! ## Stability
23//!
24//! [`live-data`]: https://crates.io/crates/live-data
25//! [`live-feed`]: https://crates.io/crates/live-feed
26//! [`live-stream`]: https://crates.io/crates/live-stream
27
28#[cfg(feature = "types")]
29pub use live_data;
30
31#[cfg(feature = "publisher")]
32pub use live_feed;
33
34#[cfg(feature = "consumer")]
35pub use live_stream;