Skip to main content

dnet_utils/
lib.rs

1#![warn(missing_docs)]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3
4//! Transport-related utilities.
5
6use dportable::create_non_sync_send_variant_for_wasm;
7
8#[cfg(feature = "channel")]
9pub mod channel;
10
11#[cfg(feature = "pipe")]
12pub mod pipe;
13
14#[cfg(feature = "merged")]
15pub mod merge;
16
17#[cfg(feature = "filtering")]
18pub mod filter;
19
20#[cfg(feature = "mapping")]
21pub mod map;
22
23#[cfg(feature = "unwrapping")]
24pub mod unwrap;
25
26#[cfg(feature = "splitting")]
27pub mod split;
28
29#[cfg(feature = "numbered")]
30pub mod number;
31
32#[cfg(feature = "latest")]
33pub mod latest;
34
35#[cfg(feature = "void")]
36pub mod void;
37
38#[cfg(feature = "wall")]
39pub mod wall;
40
41create_non_sync_send_variant_for_wasm! {
42    /// [Send] on native targets, empty trait on WASM.
43    ///
44    /// Helper trait.
45    pub trait ConditionalSend: Send {}
46    impl<T> ConditionalSend for T where T: Send {}
47}