[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 = { workspace = true } typst-macros = { workspace = true } typst-pdf = { workspace = true } typst-render = { workspace = true } typst-svg = { workspace = true } typst-timing = { workspace = true } chrono = { workspace = true } clap = { workspace = true } codespan-reporting = { workspace = true } comemo = { workspace = true } dirs = { workspace = true } ecow = { workspace = true } env_proxy = { workspace = true } flate2 = { workspace = true } fontdb = { workspace = true, features = ["memmap", "fontconfig"] } notify = { workspace = true } once_cell = { workspace = true } open = { workspace = true } parking_lot = { workspace = true } pathdiff = { workspace = true } rayon = { workspace = true } rustls = { workspace = true } rustls-pemfile = { workspace = true } same-file = { workspace = true } self-replace = { workspace = true, optional = true } semver = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } serde_yaml = { workspace = true } siphasher = { workspace = true } tar = { workspace = true } tempfile = { workspace = true } ureq = { workspace = true } xz2 = { workspace = true, optional = true } zip = { workspace = true, optional = true } [build-dependencies] clap = { workspace = true, features = ["string"] } clap_complete = { workspace = true } clap_mangen = { workspace = true } semver = { workspace = true } [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"] [lints] workspace = true