From 8f52604987038225ce90261f17fd8408f1a7ebe3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 5 Feb 2020 01:40:27 +0100 Subject: Use `reqwest` and `tokio` in `pokedex` example --- futures/src/executor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'futures/src/executor.rs') diff --git a/futures/src/executor.rs b/futures/src/executor.rs index c2b9cc72..2a5281af 100644 --- a/futures/src/executor.rs +++ b/futures/src/executor.rs @@ -4,10 +4,10 @@ mod null; #[cfg(feature = "thread-pool")] mod thread_pool; -#[cfg(feature = "tokio")] +#[cfg(all(not(target_arch = "wasm32"), feature = "tokio"))] mod tokio; -#[cfg(feature = "async-std")] +#[cfg(all(not(target_arch = "wasm32"), feature = "async-std"))] mod async_std; #[cfg(target_arch = "wasm32")] @@ -18,10 +18,10 @@ pub use null::Null; #[cfg(feature = "thread-pool")] pub use thread_pool::ThreadPool; -#[cfg(feature = "tokio")] +#[cfg(all(not(target_arch = "wasm32"), feature = "tokio"))] pub use self::tokio::Tokio; -#[cfg(feature = "async-std")] +#[cfg(all(not(target_arch = "wasm32"), feature = "async-std"))] pub use self::async_std::AsyncStd; #[cfg(target_arch = "wasm32")] -- cgit