rs_event_emitter/
lib.rs

1#[cfg(any(feature = "sync", feature = "async", feature = "wasm"))]
2mod types;
3
4#[cfg(any(feature = "sync", feature = "async", feature = "wasm"))]
5mod macros;
6
7#[cfg(any(feature = "sync", feature = "async", feature = "wasm"))]
8#[macro_use]
9mod from_args;
10
11#[cfg(feature = "sync")]
12mod emitter;
13
14#[cfg(any(feature = "sync", feature = "async", feature = "wasm"))]
15mod utils;
16
17#[cfg(feature = "wasm")]
18mod wasm_emitter;
19
20#[cfg(feature = "async")]
21mod async_emitter;
22
23#[cfg(any(feature = "sync", feature = "async", feature = "wasm"))]
24pub use types::*;
25
26#[cfg(any(feature = "sync", feature = "async", feature = "wasm"))]
27pub use from_args::*;
28
29#[cfg(feature = "sync")]
30pub use emitter::EventEmitter;
31
32#[cfg(any(feature = "sync", feature = "async"))]
33pub use macros::emit;
34
35#[cfg(feature = "wasm")]
36pub use wasm_emitter::EventEmitter;
37
38#[cfg(feature = "async")]
39pub use async_emitter::AsyncEventEmitter;
40
41#[cfg(feature = "async")]
42pub use emitter_runtime::*;
43
44#[cfg(any(feature = "sync", feature = "async", feature = "wasm"))]
45pub use utils::*;
46
47
48#[cfg(test)]
49mod tests;