From 67f878b8906a7ad2bd708e7c2bc4aa9f1d232d0e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 12 Jan 2022 20:03:18 +0700 Subject: Remove support for old `tokio` crate --- src/executor.rs | 17 +++-------------- src/lib.rs | 8 +------- 2 files changed, 4 insertions(+), 21 deletions(-) (limited to 'src') diff --git a/src/executor.rs b/src/executor.rs index 9f3656b1..c7166c68 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -7,30 +7,19 @@ pub use platform::Default; mod platform { use iced_futures::{executor, futures}; - #[cfg(feature = "tokio_old")] - type Executor = executor::TokioOld; - - #[cfg(all(feature = "tokio", not(feature = "tokio_old")))] + #[cfg(feature = "tokio")] type Executor = executor::Tokio; - #[cfg(all( - feature = "async-std", - not(any(feature = "tokio_old", feature = "tokio")), - ))] + #[cfg(all(feature = "async-std", not(feature = "tokio"),))] type Executor = executor::AsyncStd; #[cfg(all( feature = "smol", - not(any( - feature = "tokio_old", - feature = "tokio", - feature = "async-std" - )), + not(any(feature = "tokio", feature = "async-std")), ))] type Executor = executor::Smol; #[cfg(not(any( - feature = "tokio_old", feature = "tokio", feature = "async-std", feature = "smol", diff --git a/src/lib.rs b/src/lib.rs index 1ca07e80..6c0e03e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -195,19 +195,13 @@ pub mod widget; pub mod window; #[cfg(all( - any( - feature = "tokio", - feature = "tokio_old", - feature = "async-std", - feature = "smol" - ), + any(feature = "tokio", feature = "async-std", feature = "smol"), not(target_arch = "wasm32") ))] #[cfg_attr( docsrs, doc(cfg(any( feature = "tokio", - feature = "tokio_old", feature = "async-std" feature = "smol" ))) -- cgit