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"
2020-08-02 17:56:14 +03:00
authors = [ "The Typst Project Developers" ]
2021-12-13 17:15:12 +03:00
edition = "2021"
2019-02-12 23:31:35 +03:00
2020-10-12 18:10:01 +03:00
[ features ]
2022-01-24 18:38:34 +03:00
default = [ "fs" , "layout-cache" ]
cli = [ "fs" , "pico-args" , "codespan-reporting" , "same-file" ]
2021-05-31 13:00:13 +03:00
fs = [ "dirs" , "memmap2" , "same-file" , "walkdir" ]
2022-01-24 18:38:34 +03:00
layout-cache = [ ]
2020-10-12 18:10:01 +03:00
2022-01-24 18:38:34 +03:00
# Dependency updates:
# - Bump ttf-parser when rustybuzz is updated
# - Bump usvg and resvg in conjunction with svg2pdf
2021-03-13 16:18:31 +03:00
2019-02-12 23:31:35 +03:00
[ dependencies ]
2022-01-24 18:38:34 +03:00
# Workspace
typst-macros = { path = "./macros" }
# Utilities
bytemuck = "1"
2021-12-07 18:36:39 +03:00
fxhash = "0.2"
2021-08-19 16:07:11 +03:00
itertools = "0.10"
2021-12-07 18:36:39 +03:00
once_cell = "1"
2022-01-24 18:48:24 +03:00
serde = { version = "1" , features = [ "derive" ] }
2022-01-24 18:38:34 +03:00
# Text and font handling
2022-02-03 17:21:12 +03:00
kurbo = "0.8"
2021-04-06 16:13:20 +03:00
ttf-parser = "0.12"
2022-01-24 18:38:34 +03:00
rustybuzz = "0.4"
2021-04-07 01:23:33 +03:00
unicode-bidi = "0.3.5"
2021-12-07 18:36:39 +03:00
unicode-segmentation = "1"
2020-08-02 12:22:49 +03:00
unicode-xid = "0.2"
2021-03-28 20:03:04 +03:00
xi-unicode = "0.3"
2022-01-24 18:38:34 +03:00
# Raster and vector graphics handling
image = { version = "0.23" , default-features = false , features = [ "png" , "jpeg" ] }
usvg = { version = "0.20" , default-features = false }
2021-12-14 16:24:02 +03:00
# External implementation of user-facing features
syntect = { version = "4.6" , default-features = false , features = [ "dump-load" , "parsing" , "regex-fancy" , "assets" ] }
2022-01-24 18:38:34 +03:00
# PDF export
miniz_oxide = "0.4"
pdf-writer = "0.4"
svg2pdf = "0.2"
2022-01-24 18:48:24 +03: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 18:38:34 +03:00
# Command line interface
pico-args = { version = "0.4" , optional = true }
2021-07-31 23:59:14 +03:00
codespan-reporting = { version = "0.11" , optional = true }
2022-01-24 18:38:34 +03:00
same-file = { version = "1" , optional = true }
# File system loading
2022-01-01 14:12:50 +03:00
dirs = { version = "4" , optional = true }
memmap2 = { version = "0.5" , optional = true }
2021-04-23 18:46:14 +03:00
walkdir = { version = "2" , optional = true }
2020-01-06 14:41:42 +03:00
2022-01-24 18:38:34 +03:00
# Still here for layout cache evaluation, but must be activated manually.
rand = { version = "0.8" , optional = true }
2020-08-02 17:56:14 +03:00
[ dev-dependencies ]
2021-11-30 01:22:53 +03:00
filedescriptor = "0.8"
iai = { git = "https://github.com/reknih/iai" }
walkdir = "2"
2019-10-11 21:28:22 +03:00
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"
2020-12-11 00:44:35 +03:00
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"
2020-08-02 22:17:42 +03:00
required-features = [ "fs" ]
2019-10-11 21:28:22 +03:00
harness = false
2021-08-18 19:12:26 +03:00
[ [ bench ] ]
name = "oneshot"
path = "benches/oneshot.rs"
harness = false