From cf827dd349f28bdab82f71c0d33791d67480c0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 2 Apr 2025 10:46:25 +0200 Subject: [PATCH] Allow disabling all executor features on Wasm builds --- src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9b3f3788..2d4b6b69 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -480,7 +480,12 @@ use iced_winit::runtime; pub use iced_futures::futures; pub use iced_futures::stream; -#[cfg(not(any(feature = "thread-pool", feature = "tokio", feature = "smol")))] +#[cfg(not(any( + target_arch = "wasm32", + feature = "thread-pool", + feature = "tokio", + feature = "smol" +)))] compile_error!( "No futures executor has been enabled! You must enable an executor feature.\n