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/// A cross-compatible async runtime
17pub mod async_runtime;
18
19#[cfg(feature = "crypto")]
20/// Collects common cryptographic tools
21pub mod crypto;
22
23pub use error::{Error, Result};