tinymist/crates/typlite/Cargo.toml
Myriad-Dreamin 483de6f00d
build: generate docs with internal links (#1831)
* build: generate docs with internal links

* build: detect link kind
2025-06-22 15:28:27 +08:00

67 lines
1.7 KiB
TOML

[package]
name = "typlite"
description = "Converts a subset of typst to markdown."
categories = ["compilers"]
keywords = ["language", "typst"]
authors.workspace = true
version.workspace = true
license.workspace = true
edition.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true
[[bin]]
name = "typlite"
path = "src/main.rs"
required-features = ["cli"]
test = false
doctest = false
bench = false
doc = false
[dependencies]
base64.workspace = true
clap = { workspace = true, optional = true }
cmark-writer.workspace = true
comemo.workspace = true
ecow.workspace = true
regex.workspace = true
tinymist-std.workspace = true
tinymist-derive.workspace = true
tinymist-project = { workspace = true, features = ["lsp"] }
typst.workspace = true
typst-svg.workspace = true
typst-syntax.workspace = true
typst-html.workspace = true
# Feature: docx
docx-rs = { workspace = true, optional = true }
image = { workspace = true, optional = true }
resvg = { workspace = true, optional = true }
[dev-dependencies]
insta.workspace = true
regex.workspace = true
tinymist-tests.workspace = true
[features]
default = ["no-content-hint", "cli"]
clap = ["dep:clap"]
# Note: this is the feature for typlite as a CLI, not for others.
# `docx` is enabled in CLI mode, but not in library mode.
# `fonts` is enabled in CLI mode.
cli = ["clap", "clap/wrap_help", "docx", "fonts"]
no-content-hint = ["tinymist-project/no-content-hint"]
docx = ["docx-rs", "image", "resvg"]
# Embeds Typst's default fonts for
# - text (Linux Libertine),
# - math (New Computer Modern Math), and
# - code (Deja Vu Sans Mono)
# and additionally New Computer Modern for text
# into the binary.
fonts = ["tinymist-project/fonts"]
# [lints]
# workspace = true