From 80324284282f173e4d26e1f297daaf71a93f51a6 Mon Sep 17 00:00:00 2001 From: Malte Veerman Date: Fri, 6 Dec 2019 16:47:40 +0100 Subject: Implemented SVG support in iced_wgpu. --- wgpu/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'wgpu/Cargo.toml') diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index 47ec0537..e8e9c877 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -17,3 +17,4 @@ image = "0.22" glam = "0.8" font-kit = "0.4" log = "0.4" +resvg = { version = "0.8", features = ["raqote-backend"] } -- cgit From 232d4873ba0fb9b87d08c8d70b117e81aa7489b5 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 15 Dec 2019 06:45:20 +0100 Subject: Put `svg` rendering behind a feature gate This reduces binary size when SVG supoprt is not needed. --- wgpu/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wgpu/Cargo.toml') diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index e8e9c877..bb241914 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -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 } -- cgit