diff options
author | 2021-01-15 18:31:30 +0100 | |
---|---|---|
committer | 2021-01-15 18:31:30 +0100 | |
commit | a42a0844c2ffc51e117304a5d08e4a0fb52adac7 (patch) | |
tree | 191f7920e9c4536419b652d823503eb20d36c7ae /src | |
parent | c542224f4b466f9de103d8f67e20ce48583a5461 (diff) | |
download | iced-a42a0844c2ffc51e117304a5d08e4a0fb52adac7.tar.gz iced-a42a0844c2ffc51e117304a5d08e4a0fb52adac7.tar.bz2 iced-a42a0844c2ffc51e117304a5d08e4a0fb52adac7.zip |
Keep old behavior for `Executor` feature flags
Diffstat (limited to 'src')
-rw-r--r-- | src/executor.rs | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/executor.rs b/src/executor.rs index 2c6d9ec0..9f3656b1 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -7,32 +7,25 @@ pub use platform::Default; mod platform { use iced_futures::{executor, futures}; - #[cfg(all( - not(any(feature = "tokio", feature = "smol", feature = "async-std")), - feature = "tokio_old" - ))] + #[cfg(feature = "tokio_old")] type Executor = executor::TokioOld; - #[cfg(all( - not(any( - feature = "tokio_old", - feature = "smol", - feature = "async-std" - )), - feature = "tokio" - ))] + #[cfg(all(feature = "tokio", not(feature = "tokio_old")))] type Executor = executor::Tokio; - #[cfg(feature = "async-std")] + #[cfg(all( + feature = "async-std", + not(any(feature = "tokio_old", feature = "tokio")), + ))] type Executor = executor::AsyncStd; #[cfg(all( + feature = "smol", not(any( feature = "tokio_old", feature = "tokio", feature = "async-std" )), - feature = "smol" ))] type Executor = executor::Smol; |