Put svg rendering behind a feature gate

This reduces binary size when SVG supoprt is not needed.
This commit is contained in:
Héctor Ramón Jiménez 2019-12-15 06:45:20 +01:00
parent aa29849976
commit 232d4873ba
5 changed files with 49 additions and 16 deletions

View file

@ -7,6 +7,9 @@ description = "A wgpu renderer for Iced"
license = "MIT AND OFL-1.1"
repository = "https://github.com/hecrj/iced"
[features]
svg = ["resvg"]
[dependencies]
iced_native = { version = "0.1.0", path = "../native" }
wgpu = "0.4"
@ -17,4 +20,4 @@ image = "0.22"
glam = "0.8"
font-kit = "0.4"
log = "0.4"
resvg = { version = "0.8", features = ["raqote-backend"] }
resvg = { version = "0.8", features = ["raqote-backend"], optional = true }