sea_streamer_runtime/
lib.rs

1//! ### `sea-streamer-runtime`: Async runtime abstraction
2//!
3//! This crate provides a small set of functions aligning the type signatures between `async-std` and `tokio`,
4//! so that you can build applications generic to both runtimes.
5
6#[cfg(all(feature = "runtime-async-std", feature = "runtime-tokio"))]
7compile_error!("'runtime-async-std' and 'runtime-tokio' cannot be enabled at the same time");
8
9#[cfg(feature = "file")]
10pub mod file;
11mod mutex;
12mod sleep;
13mod task;
14mod timeout;
15
16pub use mutex::*;
17pub use sleep::*;
18pub use task::*;
19pub use timeout::*;