mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
73 lines
1.8 KiB
TOML
73 lines
1.8 KiB
TOML
[package]
|
|
name = "typst-cli"
|
|
description = "The command line interface for Typst."
|
|
categories = ["compilers", "command-line-utilities"]
|
|
keywords = ["typst", "cli"]
|
|
version.workspace = true
|
|
rust-version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
license.workspace = true
|
|
|
|
[[bin]]
|
|
name = "typst"
|
|
path = "src/main.rs"
|
|
test = false
|
|
doctest = false
|
|
bench = false
|
|
doc = false
|
|
|
|
[dependencies]
|
|
typst = { path = "../typst" }
|
|
typst-library = { path = "../typst-library" }
|
|
chrono = { version = "0.4.24", default-features = false, features = ["clock", "std"] }
|
|
clap = { version = "4.2.4", features = ["derive", "env"] }
|
|
codespan-reporting = "0.11"
|
|
comemo = "0.3"
|
|
dirs = "5"
|
|
flate2 = "1"
|
|
inferno = "0.11.15"
|
|
memmap2 = "0.5"
|
|
notify = "5"
|
|
once_cell = "1"
|
|
open = "4.0.2"
|
|
pathdiff = "0.1"
|
|
same-file = "1"
|
|
# https://github.com/mitsuhiko/self-replace/pull/16
|
|
self-replace = { git = "https://github.com/typst/self-replace", optional = true }
|
|
semver = "1"
|
|
serde = "1.0.184"
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
siphasher = "0.3"
|
|
tar = "0.4"
|
|
tempfile = "3.7.0"
|
|
tracing = "0.1.37"
|
|
tracing-error = "0.2"
|
|
tracing-flame = "0.2.0"
|
|
tracing-subscriber = "0.3.17"
|
|
ureq = "2"
|
|
walkdir = "2"
|
|
xz2 = { version = "0.1", optional = true }
|
|
zip = { version = "0.6", optional = true }
|
|
|
|
[build-dependencies]
|
|
semver = "1"
|
|
clap = { version = "4.2.4", features = ["derive", "string"] }
|
|
clap_complete = "4.2.1"
|
|
clap_mangen = "0.2.10"
|
|
|
|
[features]
|
|
default = ["embed-fonts"]
|
|
|
|
# Embeds some fonts into the binary:
|
|
# - For text: Linux Libertine, New Computer Modern
|
|
# - For math: New Computer Modern Math
|
|
# - For code: Deja Vu Sans Mono
|
|
embed-fonts = []
|
|
|
|
# Permits the CLI to update itself without a package manager
|
|
self-update = ["dep:self-replace", "dep:xz2", "dep:zip", "ureq/json"]
|