aboutsummaryrefslogtreecommitdiff
path: root/core/src/lib.rs
blob: a7192d929a7b627e7f7cf080e0c10c3d397bce63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#[cfg(all(feature = "smol", feature = "tokio"))]
compile_error!("Only one async runtime feature should be enabled");

#[cfg(not(any(feature = "smol", feature = "tokio")))]
compile_error!("At least one async runtime feature must be enabled for this crate.");

/// A set of helper tools and functions.
pub mod util;

/// A set of async utilities.
pub mod async_util;

/// Represents karyon's Core Error.
pub mod error;

/// [`event::EventEmitter`] implementation.
pub mod event;

/// A simple publish-subscribe system [`Read More`](./pubsub/struct.Publisher.html)
pub mod pubsub;

/// A cross-compatible async runtime
pub mod async_runtime;

#[cfg(feature = "crypto")]

/// Collects common cryptographic tools
pub mod crypto;

pub use error::{Error, Result};