summaryrefslogtreecommitdiffstats
path: root/wgpu/src/renderer/widget.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-20 11:19:42 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-20 11:19:42 +0100
commitbc611cf51cd35bb3a4b91500c8a13202db58ac38 (patch)
tree38d04730584ca63fac40e8902eaf03b01bc077fe /wgpu/src/renderer/widget.rs
parent91d9d65a03ce9b211e4043726e7424949d314325 (diff)
downloadiced-bc611cf51cd35bb3a4b91500c8a13202db58ac38.tar.gz
iced-bc611cf51cd35bb3a4b91500c8a13202db58ac38.tar.bz2
iced-bc611cf51cd35bb3a4b91500c8a13202db58ac38.zip
Make `image` support optional in `iced_wgpu`
This reduces binary size when image rendering is not necessary a considerable amount.
Diffstat (limited to 'wgpu/src/renderer/widget.rs')
-rw-r--r--wgpu/src/renderer/widget.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/wgpu/src/renderer/widget.rs b/wgpu/src/renderer/widget.rs
index 2c75413f..84f908e7 100644
--- a/wgpu/src/renderer/widget.rs
+++ b/wgpu/src/renderer/widget.rs
@@ -2,7 +2,6 @@ mod button;
mod checkbox;
mod column;
mod container;
-mod image;
mod progress_bar;
mod radio;
mod row;
@@ -14,3 +13,6 @@ mod text_input;
#[cfg(feature = "svg")]
mod svg;
+
+#[cfg(feature = "image")]
+mod image;