diff options
author | 2021-01-15 19:04:23 +0100 | |
---|---|---|
committer | 2021-01-15 19:04:23 +0100 | |
commit | 2056304e39c32ef5613eb6e82036586043002c08 (patch) | |
tree | d6f780a018222ed4a4476cfbc634543c7499b462 /futures/src/executor.rs | |
parent | 984583b0cca86d7ba8f865489cbebeb181349c19 (diff) | |
parent | fd2c96c8e36eb37ea4a53aafe0986b569a4e3753 (diff) | |
download | iced-2056304e39c32ef5613eb6e82036586043002c08.tar.gz iced-2056304e39c32ef5613eb6e82036586043002c08.tar.bz2 iced-2056304e39c32ef5613eb6e82036586043002c08.zip |
Merge pull request #699 from JayceFayne/smol
Add `smol` async runtime support
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; |