summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 16:47:50 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:16 +0700
commit825c7749ff364cf1f7ae5cab0c25f27ed85c7d82 (patch)
treefdd7e499c343a7e3cf690d4b5aa40ba568674a3c /src/lib.rs
parent1e3feee3a36f25d7e2eda231c3e6b895858952c5 (diff)
downloadiced-825c7749ff364cf1f7ae5cab0c25f27ed85c7d82.tar.gz
iced-825c7749ff364cf1f7ae5cab0c25f27ed85c7d82.tar.bz2
iced-825c7749ff364cf1f7ae5cab0c25f27ed85c7d82.zip
Replace `iced_web` with WebGL support in `wgpu` :tada:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6c0e03e8..41fb3a8b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -208,29 +208,18 @@ pub mod window;
)]
pub mod time;
-#[cfg(all(
- not(target_arch = "wasm32"),
- not(feature = "glow"),
- feature = "wgpu"
-))]
+#[cfg(all(not(feature = "glow"), feature = "wgpu"))]
use iced_winit as runtime;
-#[cfg(all(not(target_arch = "wasm32"), feature = "glow"))]
+#[cfg(feature = "glow")]
use iced_glutin as runtime;
-#[cfg(all(
- not(target_arch = "wasm32"),
- not(feature = "glow"),
- feature = "wgpu"
-))]
+#[cfg(all(not(feature = "glow"), feature = "wgpu"))]
use iced_wgpu as renderer;
-#[cfg(all(not(target_arch = "wasm32"), feature = "glow"))]
+#[cfg(feature = "glow")]
use iced_glow as renderer;
-#[cfg(target_arch = "wasm32")]
-use iced_web as runtime;
-
#[doc(no_inline)]
pub use widget::*;