aboutsummaryrefslogtreecommitdiff
path: root/core/src/lib.rs
blob: 62052a8a88aebe0085cef243a3b584b5ad8665c1 (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::EventSys`] 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};