Make image support optional in iced_wgpu

This reduces binary size when image rendering is not necessary a
considerable amount.
This commit is contained in:
Héctor Ramón Jiménez 2020-01-20 11:19:42 +01:00
parent 91d9d65a03
commit bc611cf51c
6 changed files with 29 additions and 11 deletions

View file

@ -17,8 +17,8 @@ wgpu = "0.4"
glyph_brush = "0.6"
wgpu_glyph = { version = "0.7", git = "https://github.com/hecrj/wgpu_glyph", branch = "fix/font-load-panic" }
raw-window-handle = "0.3"
image = "0.22"
glam = "0.8"
font-kit = "0.4"
log = "0.4"
resvg = { version = "0.8", features = ["raqote-backend"], optional = true }
image = { version = "0.22", optional = true }