1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
[package]
name = "typst"
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2018"
[features]
default = ["cli", "fs", "layout-cache"]
cli = ["anyhow", "codespan-reporting", "fs", "same-file"]
fs = ["dirs", "memmap2", "same-file", "walkdir"]
layout-cache = []
[profile.dev]
# Faster compilation
debug = 0
[profile.dev.package."*"]
# Faster test execution
opt-level = 2
[dependencies]
decorum = { version = "0.3.1", default-features = false, features = ["serialize-serde"] }
fxhash = "0.2.1"
image = { version = "0.23", default-features = false, features = ["png", "jpeg"] }
itertools = "0.10"
miniz_oxide = "0.4"
pdf-writer = "0.3"
rand = "0.8"
rustybuzz = "0.4"
serde = { version = "1", features = ["derive", "rc"] }
ttf-parser = "0.12"
unicode-bidi = "0.3.5"
unicode-xid = "0.2"
xi-unicode = "0.3"
anyhow = { version = "1", optional = true }
codespan-reporting = { version = "0.11", optional = true }
dirs = { version = "3", optional = true }
memmap2 = { version = "0.3", optional = true }
same-file = { version = "1", optional = true }
walkdir = { version = "2", optional = true }
[dev-dependencies]
walkdir = "2"
tiny-skia = "0.5"
usvg = { version = "0.15", default-features = false }
iai = { git = "https://github.com/reknih/iai" }
[[bin]]
name = "typst"
required-features = ["cli"]
[[test]]
name = "typeset"
required-features = ["fs"]
harness = false
[[bench]]
name = "oneshot"
path = "benches/oneshot.rs"
harness = false
|