Keep old behavior for `Executor` feature flags
This commit is contained in:
parent
c542224f4b
commit
a42a0844c2
|
@ -7,32 +7,25 @@ pub use platform::Default;
|
||||||
mod platform {
|
mod platform {
|
||||||
use iced_futures::{executor, futures};
|
use iced_futures::{executor, futures};
|
||||||
|
|
||||||
#[cfg(all(
|
#[cfg(feature = "tokio_old")]
|
||||||
not(any(feature = "tokio", feature = "smol", feature = "async-std")),
|
|
||||||
feature = "tokio_old"
|
|
||||||
))]
|
|
||||||
type Executor = executor::TokioOld;
|
type Executor = executor::TokioOld;
|
||||||
|
|
||||||
#[cfg(all(
|
#[cfg(all(feature = "tokio", not(feature = "tokio_old")))]
|
||||||
not(any(
|
|
||||||
feature = "tokio_old",
|
|
||||||
feature = "smol",
|
|
||||||
feature = "async-std"
|
|
||||||
)),
|
|
||||||
feature = "tokio"
|
|
||||||
))]
|
|
||||||
type Executor = executor::Tokio;
|
type Executor = executor::Tokio;
|
||||||
|
|
||||||
#[cfg(feature = "async-std")]
|
#[cfg(all(
|
||||||
|
feature = "async-std",
|
||||||
|
not(any(feature = "tokio_old", feature = "tokio")),
|
||||||
|
))]
|
||||||
type Executor = executor::AsyncStd;
|
type Executor = executor::AsyncStd;
|
||||||
|
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
|
feature = "smol",
|
||||||
not(any(
|
not(any(
|
||||||
feature = "tokio_old",
|
feature = "tokio_old",
|
||||||
feature = "tokio",
|
feature = "tokio",
|
||||||
feature = "async-std"
|
feature = "async-std"
|
||||||
)),
|
)),
|
||||||
feature = "smol"
|
|
||||||
))]
|
))]
|
||||||
type Executor = executor::Smol;
|
type Executor = executor::Smol;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue