diff options
author | 2021-01-13 01:48:35 +0100 | |
---|---|---|
committer | 2021-01-14 12:28:02 +0100 | |
commit | b2415eee61063d5c2b220d7b7a513d1952ce2be1 (patch) | |
tree | 2a0429981aa745132cb103d9d9bb75972e0c27b6 /futures/src/executor.rs | |
parent | 92d647d1a6145e19ef9f540e02faef6a892f51fa (diff) | |
download | iced-b2415eee61063d5c2b220d7b7a513d1952ce2be1.tar.gz iced-b2415eee61063d5c2b220d7b7a513d1952ce2be1.tar.bz2 iced-b2415eee61063d5c2b220d7b7a513d1952ce2be1.zip |
Add `smol` async runtime
Diffstat (limited to 'futures/src/executor.rs')
-rw-r--r-- | futures/src/executor.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/futures/src/executor.rs b/futures/src/executor.rs index fa87216a..b35b5bc1 100644 --- a/futures/src/executor.rs +++ b/futures/src/executor.rs @@ -13,6 +13,9 @@ mod tokio_old; #[cfg(all(not(target_arch = "wasm32"), feature = "async-std"))] mod async_std; +#[cfg(all(not(target_arch = "wasm32"), feature = "smol"))] +mod smol; + #[cfg(target_arch = "wasm32")] mod wasm_bindgen; @@ -30,6 +33,9 @@ pub use self::tokio_old::TokioOld; #[cfg(all(not(target_arch = "wasm32"), feature = "async-std"))] pub use self::async_std::AsyncStd; +#[cfg(all(not(target_arch = "wasm32"), feature = "smol"))] +pub use self::smol::Smol; + #[cfg(target_arch = "wasm32")] pub use wasm_bindgen::WasmBindgen; |