blob: 442b642352527e8eb498c55c80a18a4fd649a610 (
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
|
/// A set of helper tools and functions.
pub mod util;
/// A module containing async utilities that work with the
/// [`smol`](https://github.com/smol-rs/smol) async runtime.
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;
#[cfg(feature = "crypto")]
/// Collects common cryptographic tools
pub mod crypto;
use smol::Executor as SmolEx;
use std::sync::Arc;
/// A pointer to an Executor
pub type Executor<'a> = Arc<SmolEx<'a>>;
/// A Global Executor
pub type GlobalExecutor = Arc<SmolEx<'static>>;
use error::Result;
|