rings-core 0.3.0

Chord DHT implementation with ICE
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Async channel for both browser(wasm) and native(node).

#[cfg(not(feature = "wasm"))]
mod default;
#[cfg(feature = "wasm")]
mod wasm;

/// A Channel build with wasm feature or not.
/// - wasm features: using mpsc::UnboundedSender and mpsc::UnboundedReceiver.
/// - default fatures: using async_channel::Sender and async_channel::Receiver.
#[cfg(not(feature = "wasm"))]
pub use default::AcChannel as Channel;
#[cfg(feature = "wasm")]
pub use wasm::CbChannel as Channel;