summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenz Stampfl <47084093+LaurenzV@users.noreply.github.com>2023-07-24 22:17:49 +0200
committerGitHub <noreply@github.com>2023-07-24 22:17:49 +0200
commit8e200c356cbef0e447d01a8c363d0484b988f703 (patch)
tree0779bcc403e06d9650c777f21dd641c1ba0cc8e0
parentc0af6e3569ac7893450d7aae08c6b38de5c976d0 (diff)
Enable feature raster images to resvg (#1786)
-rw-r--r--Cargo.lock3
-rw-r--r--crates/typst/Cargo.toml2
2 files changed, 4 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 1e8efd87..0bd7eab0 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 1f19bf50..d8f733bf 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"] }