typst/Cargo.toml

91 lines
2.0 KiB
TOML
Raw Normal View History

2019-02-12 21:31:35 +01:00
[package]
2020-10-13 11:47:29 +02:00
name = "typst"
2019-02-12 21:31:35 +01:00
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2021"
2019-02-12 21:31:35 +01:00
2020-10-12 17:10:01 +02:00
[features]
2022-01-24 16:38:34 +01:00
default = ["fs", "layout-cache"]
cli = ["fs", "pico-args", "codespan-reporting", "same-file"]
fs = ["dirs", "memmap2", "same-file", "walkdir"]
2022-01-24 16:38:34 +01:00
layout-cache = []
2020-10-12 17:10:01 +02:00
2022-01-24 16:38:34 +01:00
# Dependency updates:
# - Bump ttf-parser when rustybuzz is updated
# - Bump usvg and resvg in conjunction with svg2pdf
2019-02-12 21:31:35 +01:00
[dependencies]
2022-01-24 16:38:34 +01:00
# Workspace
typst-macros = { path = "./macros" }
# Utilities
bytemuck = "1"
fxhash = "0.2"
itertools = "0.10"
once_cell = "1"
2022-01-24 16:48:24 +01:00
serde = { version = "1", features = ["derive"] }
2022-01-24 16:38:34 +01:00
# Text and font handling
ttf-parser = "0.12"
2022-01-24 16:38:34 +01:00
rustybuzz = "0.4"
unicode-bidi = "0.3.5"
unicode-segmentation = "1"
unicode-xid = "0.2"
xi-unicode = "0.3"
2022-01-24 16:38:34 +01:00
# Raster and vector graphics handling
image = { version = "0.23", default-features = false, features = ["png", "jpeg"] }
usvg = { version = "0.20", default-features = false }
# PDF export
miniz_oxide = "0.4"
pdf-writer = "0.4"
svg2pdf = "0.2"
2022-01-24 16:48:24 +01:00
# Raster export / rendering
tiny-skia = "0.6.2"
pixglyph = { git = "https://github.com/typst/pixglyph" }
resvg = { version = "0.20", default-features = false }
roxmltree = "0.14"
flate2 = "1"
2022-01-24 16:38:34 +01:00
# Command line interface
pico-args = { version = "0.4", optional = true }
codespan-reporting = { version = "0.11", optional = true }
2022-01-24 16:38:34 +01:00
same-file = { version = "1", optional = true }
# File system loading
2022-01-01 12:12:50 +01:00
dirs = { version = "4", optional = true }
memmap2 = { version = "0.5", optional = true }
walkdir = { version = "2", optional = true }
2020-01-06 12:41:42 +01:00
2022-01-24 16:38:34 +01:00
# 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" }
walkdir = "2"
2019-10-11 20:28:22 +02:00
2022-01-24 16:38:34 +01:00
[profile.dev]
# Faster compilation
debug = 0
[profile.dev.package."*"]
# Faster test execution
opt-level = 2
2022-01-01 12:12:50 +01:00
2020-10-12 21:26:58 +02:00
[[bin]]
2020-10-13 11:47:29 +02:00
name = "typst"
required-features = ["cli"]
2020-10-12 21:26:58 +02:00
2019-10-11 20:28:22 +02:00
[[test]]
2020-08-14 19:54:49 +02:00
name = "typeset"
required-features = ["fs"]
2019-10-11 20:28:22 +02:00
harness = false
[[bench]]
name = "oneshot"
path = "benches/oneshot.rs"
harness = false