Skip to main content

karyon_core/
lib.rs

1#![doc = include_str!("../README.md")]
2
3#[cfg(all(feature = "smol", feature = "tokio"))]
4compile_error!("Only one async runtime feature should be enabled");
5
6#[cfg(not(any(feature = "smol", feature = "tokio")))]
7compile_error!("At least one async runtime feature must be enabled for this crate.");
8
9/// A set of helper tools and functions.
10pub mod util;
11
12/// A set of async utilities.
13pub mod async_util;
14
15/// Represents karyon's Core Error.
16pub mod error;
17
18/// A cross-compatible async runtime
19pub mod async_runtime;
20
21#[cfg(feature = "crypto")]
22/// Collects common cryptographic tools
23pub mod crypto;
24
25#[cfg(feature = "testing")]
26/// Test utilities for running async tests with timeouts and executors.
27pub mod testing;
28
29pub use error::{Error, Result};