summaryrefslogtreecommitdiff
path: root/Cargo.toml
blob: fa3668a272469340e1237061d5b0c387f32c3c63 (plain) (blame)
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
[package]
name = "typst"
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2018"

[features]
default = ["cli", "fs"]
cli = ["anyhow", "fs"]
fs = ["dirs", "memmap2", "walkdir"]

[workspace]
members = ["bench"]

[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"] }
miniz_oxide = "0.3"
pdf-writer = { path = "../pdf-writer" }
rustybuzz = { git = "https://github.com/laurmaedje/rustybuzz" }
serde = { version = "1", features = ["derive"] }
ttf-parser = "0.12"
unicode-bidi = "0.3.5"
unicode-xid = "0.2"
xi-unicode = "0.3"
anyhow = { version = "1", optional = true }
dirs = { version = "3", optional = true }
memmap2 = { version = "0.2", optional = true }
walkdir = { version = "2", optional = true }

[dev-dependencies]
walkdir = "2"
tiny-skia = "0.5"
usvg = { version = "0.14", default-features = false }

[[bin]]
name = "typst"
required-features = ["cli"]

[[test]]
name = "typeset"
required-features = ["fs"]
harness = false