karyon_core/
lib.rs

1#[cfg(all(feature = "smol", feature = "tokio"))]
2compile_error!("Only one async runtime feature should be enabled");
3
4#[cfg(not(any(feature = "smol", feature = "tokio")))]
5compile_error!("At least one async runtime feature must be enabled for this crate.");
6
7/// A set of helper tools and functions.
8pub mod util;
9
10/// A set of async utilities.
11pub mod async_util;
12
13/// Represents karyon's Core Error.
14pub mod error;
15
16/// [`event::EventEmitter`] implementation.
17pub mod event;
18
19/// A simple publish-subscribe system [`Read More`](./pubsub/struct.Publisher.html)
20pub mod pubsub;
21
22/// A cross-compatible async runtime
23pub mod async_runtime;
24
25#[cfg(feature = "crypto")]
26/// Collects common cryptographic tools
27pub mod crypto;
28
29pub use error::{Error, Result};