From bc611cf51cd35bb3a4b91500c8a13202db58ac38 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 20 Jan 2020 11:19:42 +0100 Subject: Make `image` support optional in `iced_wgpu` This reduces binary size when image rendering is not necessary a considerable amount. --- wgpu/src/renderer/widget.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wgpu/src/renderer/widget.rs') 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; -- cgit