From 8e200c356cbef0e447d01a8c363d0484b988f703 Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> Date: Mon, 24 Jul 2023 22:17:49 +0200 Subject: [PATCH] Enable feature raster images to resvg (#1786) --- Cargo.lock | 3 +++ crates/typst/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 1e8efd87f..0bd7eab0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1790,8 +1790,11 @@ version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "142e83d8ae8c8c639f304698a5567b229ba65caba867bf4387bbc0ae158827cf" dependencies = [ + "gif", + "jpeg-decoder", "log", "pico-args", + "png", "rgb", "svgtypes", "tiny-skia", diff --git a/crates/typst/Cargo.toml b/crates/typst/Cargo.toml index 1f19bf50a..d8f733bf9 100644 --- a/crates/typst/Cargo.toml +++ b/crates/typst/Cargo.toml @@ -34,7 +34,7 @@ once_cell = "1" pdf-writer = "0.7.1" pixglyph = "0.1" regex = "1" -resvg = { version = "0.32", default-features = false } +resvg = { version = "0.32", default-features = false, features = ["raster-images"] } roxmltree = "0.18" rustybuzz = "0.7" serde = { version = "1", features = ["derive"] }