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

[workspace]
members = ["bench"]

[features]
default = ["cli", "fs"]
cli = ["fs", "anyhow"]
fs = ["fontdock/fs"]

[dependencies]
fontdock = { path = "../fontdock", default-features = false }
image = { version = "0.23", default-features = false, features = ["jpeg", "png"] }
itoa = "0.4"
miniz_oxide = "0.3"
pdf-writer = { path = "../pdf-writer" }
ryu = "1.0"
ttf-parser = "0.8.2"
unicode-xid = "0.2"
anyhow = { version = "1", optional = true }
serde = { version = "1", features = ["derive"], optional = true }

[dev-dependencies]
tiny-skia = "0.2"
walkdir = "2"

[profile.dev]
opt-level = 2

[profile.release]
lto = true

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

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