55 lines
1.3 KiB
TOML
55 lines
1.3 KiB
TOML
[package]
|
|
name = "typst"
|
|
version = "0.1.0"
|
|
authors = ["The Typst Project Developers"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = ["cli", "fs", "layout-cache"]
|
|
cli = ["anyhow", "fs", "same-file"]
|
|
fs = ["dirs", "memmap2", "same-file", "walkdir"]
|
|
layout-cache = []
|
|
|
|
[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", "rc"] }
|
|
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 }
|
|
same-file = { version = "1", 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
|