Allow disabling all executor features on Wasm builds

This commit is contained in:
Héctor Ramón Jiménez 2025-04-02 10:46:25 +02:00
parent 91996372cb
commit cf827dd349
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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