summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml66
1 files changed, 41 insertions, 25 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 0bf68d74..3d2d7706 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,55 +5,71 @@ authors = ["The Typst Project Developers"]
edition = "2021"
[features]
-default = ["cli", "fs", "layout-cache"]
-cli = ["anyhow", "codespan-reporting", "fs", "pico-args", "same-file"]
+default = ["fs", "layout-cache"]
+cli = ["fs", "pico-args", "codespan-reporting", "same-file"]
fs = ["dirs", "memmap2", "same-file", "walkdir"]
-layout-cache = ["rand"]
+layout-cache = []
-[profile.dev]
-# Faster compilation
-debug = 0
-
-[profile.dev.package."*"]
-# Faster test execution
-opt-level = 2
+# Dependency updates:
+# - Bump ttf-parser when rustybuzz is updated
+# - Bump usvg and resvg in conjunction with svg2pdf
[dependencies]
+# Workspace
+typst-macros = { path = "./macros" }
+
+# Utilities
+bytemuck = "1"
fxhash = "0.2"
-image = { version = "0.23", default-features = false, features = ["png", "jpeg"] }
itertools = "0.10"
-miniz_oxide = "0.4"
once_cell = "1"
-pdf-writer = "0.4"
-rustybuzz = "0.4"
serde = { version = "1", features = ["derive", "rc"] }
-svg2pdf = { version = "0.1", default-features = false, features = ["text", "png", "jpeg"] }
+
+# Text and font handling
ttf-parser = "0.12"
-typst-macros = { path = "./macros" }
+rustybuzz = "0.4"
unicode-bidi = "0.3.5"
unicode-segmentation = "1"
unicode-xid = "0.2"
-usvg = { version = "0.19", default-features = false, features = ["text"] }
xi-unicode = "0.3"
-anyhow = { version = "1", optional = true }
+
+# Raster and vector graphics handling
+image = { version = "0.23", default-features = false, features = ["png", "jpeg"] }
+resvg = { version = "0.20", default-features = false }
+usvg = { version = "0.20", default-features = false }
+
+# PDF export
+miniz_oxide = "0.4"
+pdf-writer = "0.4"
+svg2pdf = "0.2"
+
+# Command line interface
+pico-args = { version = "0.4", optional = true }
codespan-reporting = { version = "0.11", optional = true }
+same-file = { version = "1", optional = true }
+
+# File system loading
dirs = { version = "4", optional = true }
memmap2 = { version = "0.5", optional = true }
-pico-args = { version = "0.4", optional = true }
-rand = { version = "0.8", optional = true }
-same-file = { version = "1", optional = true }
walkdir = { version = "2", optional = true }
+# Still here for layout cache evaluation, but must be activated manually.
+rand = { version = "0.8", optional = true }
+
[dev-dependencies]
filedescriptor = "0.8"
iai = { git = "https://github.com/reknih/iai" }
-resvg = { version = "0.19", default-features = false, features = ["text"] }
+resvg = { version = "0.20", default-features = false }
tiny-skia = "0.6.2"
walkdir = "2"
-# Dependencies updates:
-# - Bump ttf-parser when rustybuzz is updated
-# - Bump usvg and resvg in conjunction with svg2pdf
+[profile.dev]
+# Faster compilation
+debug = 0
+
+[profile.dev.package."*"]
+# Faster test execution
+opt-level = 2
[[bin]]
name = "typst"