typst/Cargo.toml

111 lines
2.5 KiB
TOML
Raw Normal View History

2019-02-12 23:31:35 +03:00
[package]
2020-10-13 12:47:29 +03:00
name = "typst"
2019-02-12 23:31:35 +03:00
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2021"
2019-02-12 23:31:35 +03:00
[dependencies]
2022-01-24 18:38:34 +03:00
# Workspace
typst-macros = { path = "./macros" }
# Utilities
2022-09-19 18:44:40 +03:00
bitflags = "1"
2022-01-24 18:38:34 +03:00
bytemuck = "1"
fxhash = "0.2"
once_cell = "1"
2022-01-24 18:48:24 +03:00
serde = { version = "1", features = ["derive"] }
2022-02-07 22:00:21 +03:00
typed-arena = "2"
2022-06-11 00:53:20 +03:00
unscanny = "0.1"
2022-05-03 17:59:13 +03:00
regex = "1"
2022-01-24 18:38:34 +03:00
2022-09-21 18:50:58 +03:00
# Incremental compilation
comemo = { path = "../comemo" }
2022-01-24 18:38:34 +03:00
# Text and font handling
2022-03-08 21:49:26 +03:00
hypher = "0.1"
kurbo = "0.8"
2022-06-11 00:53:20 +03:00
ttf-parser = "0.15"
rustybuzz = "0.5"
unicode-bidi = "0.3.5"
unicode-segmentation = "1"
unicode-xid = "0.2"
2022-04-12 22:36:37 +03:00
unicode-script = "0.5"
xi-unicode = "0.3"
2022-01-24 18:38:34 +03:00
# Raster and vector graphics handling
2022-06-11 00:53:20 +03:00
image = { version = "0.24", default-features = false, features = ["png", "jpeg", "gif"] }
usvg = { version = "0.22", default-features = false }
2022-01-24 18:38:34 +03:00
2021-12-14 16:24:02 +03:00
# External implementation of user-facing features
2022-06-11 00:53:20 +03:00
syntect = { version = "5", default-features = false, features = ["default-syntaxes", "regex-fancy"] }
2022-05-18 20:09:19 +03:00
rex = { git = "https://github.com/laurmaedje/ReX" }
2022-09-21 18:50:58 +03:00
lipsum = { git = "https://github.com/reknih/lipsum" }
2022-07-27 01:09:15 +03:00
csv = "1"
2021-12-14 16:24:02 +03:00
2022-01-24 18:38:34 +03:00
# PDF export
2022-06-11 00:53:20 +03:00
miniz_oxide = "0.5"
pdf-writer = "0.6"
subsetter = { git = "https://github.com/typst/subsetter" }
svg2pdf = "0.4"
2022-01-24 18:38:34 +03:00
2022-01-24 18:48:24 +03:00
# Raster export / rendering
tiny-skia = "0.6.2"
pixglyph = { git = "https://github.com/typst/pixglyph" }
2022-06-11 00:53:20 +03:00
resvg = { version = "0.22", default-features = false }
2022-01-24 18:48:24 +03:00
roxmltree = "0.14"
flate2 = "1"
2022-09-20 14:05:55 +03:00
# Command line interface / tests
2022-01-24 18:38:34 +03:00
pico-args = { version = "0.4", optional = true }
codespan-reporting = { version = "0.11", optional = true }
2022-01-24 18:38:34 +03:00
same-file = { version = "1", optional = true }
2022-09-20 14:05:55 +03:00
walkdir = { version = "2", optional = true }
elsa = { version = "1.7", optional = true }
2022-01-01 14:12:50 +03:00
dirs = { version = "4", optional = true }
memmap2 = { version = "0.5", optional = true }
2022-09-20 14:05:55 +03:00
siphasher = { version = "0.3", optional = true }
2022-09-21 18:50:58 +03:00
notify = { version = "5", optional = true }
chrono = { version = "0.4", default-features = false, features = ["clock", "std"], optional = true }
2020-01-06 14:41:42 +03:00
[dev-dependencies]
iai = { git = "https://github.com/reknih/iai" }
walkdir = "2"
2019-10-11 21:28:22 +03:00
2022-09-21 18:50:58 +03:00
[features]
default = ["tests"]
tests = ["same-file", "walkdir", "elsa", "siphasher"]
cli = [
"pico-args",
"codespan-reporting",
"dirs",
"memmap2",
"same-file",
"walkdir",
"elsa",
"siphasher",
"notify",
"chrono",
]
2022-01-24 18:38:34 +03:00
[profile.dev]
# Faster compilation
debug = 0
[profile.dev.package."*"]
# Faster test execution
opt-level = 2
2022-01-01 14:12:50 +03:00
2020-10-12 22:26:58 +03:00
[[bin]]
2020-10-13 12:47:29 +03:00
name = "typst"
required-features = ["cli"]
2020-10-12 22:26:58 +03:00
2019-10-11 21:28:22 +03:00
[[test]]
2020-08-14 20:54:49 +03:00
name = "typeset"
2022-09-20 14:05:55 +03:00
required-features = ["tests"]
2019-10-11 21:28:22 +03:00
harness = false
[[bench]]
name = "oneshot"
path = "benches/oneshot.rs"
harness = false