wasi_async_runtime/lib.rs
1//! A single-threaded native runtime for WASI 0.2
2//!
3//! The way to use this is to call [`block_on`] to obtain an instance of
4//! [`Reactor`]. You can then share the reactor in code that needs it to insert
5//! instances of
6//! [`wasi::Pollable`](https://docs.rs/wasi/latest/wasi/io/poll/struct.Pollable.html).
7//! This will automatically wait for the futures to resolve, and call the
8//! necessary wakers to work.
9
10#![forbid(rust_2018_idioms)]
11#![deny(missing_debug_implementations, nonstandard_style)]
12#![warn(missing_docs, future_incompatible, unreachable_pub)]
13#![cfg_attr(not(feature = "std"), no_std)]
14
15extern crate alloc;
16
17mod block_on;
18mod polling;
19mod reactor;
20
21pub use block_on::block_on;
22pub use reactor::Reactor;