summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-01-31 17:01:19 +0700
committerLibravatar GitHub <noreply@github.com>2022-01-31 17:01:19 +0700
commite4ef29ef20724c3d1a4beff39ddfdaf6d45f9683 (patch)
tree6e0c9c38366c9d70204c80fc66bd8e8a7652cf52 /src/lib.rs
parentc75ed37148b019358b0297171cf31b2577eeb9ae (diff)
parent6f604ab3995cb345aacf183a569589988aa3ad1f (diff)
downloadiced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.tar.gz
iced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.tar.bz2
iced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.zip
Merge pull request #1096 from pacmancoder/feat/wgpu-webgl
Experimental WebGL wgpu backend support
Diffstat (limited to '')
-rw-r--r--src/lib.rs34
1 files changed, 5 insertions, 29 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6c0e03e8..c8047d7f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -191,46 +191,22 @@ pub mod executor;
pub mod keyboard;
pub mod mouse;
pub mod settings;
+pub mod time;
pub mod widget;
pub mod window;
-#[cfg(all(
- any(feature = "tokio", feature = "async-std", feature = "smol"),
- not(target_arch = "wasm32")
-))]
-#[cfg_attr(
- docsrs,
- doc(cfg(any(
- feature = "tokio",
- feature = "async-std"
- feature = "smol"
- )))
-)]
-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::*;