Next Generation WASM Microkernel Operating System
1// Copyright 2025. Jonas Kruckenberg
2//
3// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
4// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5// http://opensource.org/licenses/MIT>, at your option. This file may not be
6// copied, modified, or distributed except according to those terms.
7
8//! Async executor and supporting infrastructure for k23 cooperative multitasking.
9//!
10//! This crate was heavily inspired by tokio and the (much better) maitake crates, to a small extend smol also influenced the design.
11
12#![cfg_attr(not(any(test, feature = "__bench")), no_std)]
13#![feature(debug_closure_helpers)]
14#![feature(never_type)]
15#![feature(allocator_api)]
16extern crate alloc;
17
18mod error;
19pub mod executor;
20pub mod loom;
21pub mod sync;
22pub mod task;
23pub mod time;
24
25pub use error::{Closed, SpawnError};
26pub use futures::future;
27
28cfg_if::cfg_if! {
29 if #[cfg(feature = "__bench")] {
30 pub mod test_util;
31 } else
32 if #[cfg(test)] {
33 mod test_util;
34 }
35}