Allow disabling all executor features on Wasm builds
This commit is contained in:
parent
91996372cb
commit
cf827dd349
1 changed files with 6 additions and 1 deletions
|
|
@ -480,7 +480,12 @@ use iced_winit::runtime;
|
||||||
pub use iced_futures::futures;
|
pub use iced_futures::futures;
|
||||||
pub use iced_futures::stream;
|
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!(
|
compile_error!(
|
||||||
"No futures executor has been enabled! You must enable an
|
"No futures executor has been enabled! You must enable an
|
||||||
executor feature.\n
|
executor feature.\n
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue