aboutsummaryrefslogtreecommitdiff
path: root/core/src/lib.rs
blob: 276ed89b7e08e2fb0180ae5abaf201dfe3e18f90 (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
/// 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 karyons'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 cryptographic key pair
pub mod key_pair;

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;