[package]
edition = "2024"
rust-version = "1.89"
name = "typlite"
version = "0.14.10"
authors = [
"Myriad-Dreamin <camiyoru@gmail.com>",
"Nathan Varner",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Converts a subset of typst to markdown."
homepage = "https://github.com/Myriad-Dreamin/tinymist"
readme = "README.md"
keywords = [
"language",
"typst",
]
categories = ["compilers"]
license = "Apache-2.0"
repository = "https://github.com/Myriad-Dreamin/tinymist"
resolver = "2"
[features]
clap = ["dep:clap"]
cli = [
"clap",
"clap/wrap_help",
"docx",
"env_logger",
"fonts",
"system",
]
default = [
"no-content-hint",
"cli",
]
docx = [
"docx-rs",
"image",
"resvg",
]
fonts = ["tinymist-project/fonts"]
no-content-hint = ["tinymist-project/no-content-hint"]
system = ["tinymist-project/system"]
web = ["tinymist-project/web"]
[lib]
name = "typlite"
path = "src/lib.rs"
[[bin]]
name = "typlite"
path = "src/main.rs"
test = false
doctest = false
bench = false
doc = false
required-features = ["cli"]
[dependencies.base64]
version = "0.22"
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
"unicode",
]
optional = true
[dependencies.cmark-writer]
version = "0.9.0"
features = ["gfm"]
[dependencies.comemo]
version = "0.5.0"
[dependencies.docx-rs]
version = "0.4.18-rc19"
optional = true
default-features = false
[dependencies.ecow]
version = "0.2.6"
[dependencies.env_logger]
version = "0.11.3"
optional = true
[dependencies.image]
version = "0.25.5"
features = [
"png",
"jpeg",
"gif",
]
optional = true
default-features = false
[dependencies.log]
version = "0.4"
[dependencies.regex]
version = "1.12.2"
[dependencies.resvg]
version = "0.45"
optional = true
[dependencies.tinymist-derive]
version = "0.14.6"
[dependencies.tinymist-project]
version = "0.14.6"
features = ["lsp"]
[dependencies.tinymist-std]
version = "0.14.6"
default-features = false
[dependencies.typst]
version = "0.14.2"
[dependencies.typst-html]
version = "0.14.2"
[dependencies.typst-svg]
version = "0.14.2"
[dependencies.typst-syntax]
version = "0.14.2"
[dev-dependencies.insta]
version = "1.43"
features = [
"glob",
"filters",
]
[dev-dependencies.regex]
version = "1.12.2"
[lints.clippy]
missing_safety_doc = "warn"
undocumented_unsafe_blocks = "warn"
uninlined_format_args = "warn"
[lints.rust]
missing_docs = "warn"
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = [
"cfg(wasm_bindgen_unstable_test_coverage)",
"cfg(noop)",
"cfg(used_linker)",
]
[lints.rustdoc]
broken_intra_doc_links = "warn"