Remove support for old tokio crate
This commit is contained in:
parent
1a31aefab4
commit
67f878b890
9 changed files with 15 additions and 80 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue