iced_futures/backend/
default.rs
1#[cfg(not(target_arch = "wasm32"))]
11mod platform {
12 #[cfg(feature = "tokio")]
13 pub use crate::backend::native::tokio::*;
14
15 #[cfg(all(feature = "smol", not(feature = "tokio"),))]
16 pub use crate::backend::native::smol::*;
17
18 #[cfg(all(
19 feature = "thread-pool",
20 not(any(feature = "tokio", feature = "smol"))
21 ))]
22 pub use crate::backend::native::thread_pool::*;
23
24 #[cfg(not(any(
25 feature = "tokio",
26 feature = "smol",
27 feature = "thread-pool"
28 )))]
29 pub use crate::backend::null::*;
30}
31
32#[cfg(target_arch = "wasm32")]
33mod platform {
34 pub use crate::backend::wasm::wasm_bindgen::*;
35}
36
37pub use platform::*;