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. --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 28a97af9..7bfce09a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,10 +12,12 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"] categories = ["gui"] [features] +# Enables the Image widget +image = ["iced_wgpu/image"] +# Enables the Svg widget +svg = ["iced_wgpu/svg"] # Enables a debug view in native platforms (press F12) debug = ["iced_winit/debug"] -# Enables support for SVG rendering -svg = ["iced_wgpu/svg"] [badges] maintenance = { status = "actively-developed" } -- cgit