[package]
edition = "2024"
name = "dmc-transform"
version = "0.3.2"
authors = ["gentleduck"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Transform pipeline and built-in transformers for the dmc compiler"
homepage = "https://github.com/gentleeduck/duck-mc"
documentation = "https://github.com/gentleeduck/duck-mc/tree/master/dmc-docs"
readme = "README.md"
keywords = [
"mdx",
"markdown",
"compiler",
"velite",
"dmc",
]
categories = [
"compilers",
"parser-implementations",
"text-processing",
]
license = "MIT"
repository = "https://github.com/gentleeduck/duck-mc"
[features]
assets = ["dep:blake3"]
default = [
"mermaid",
"assets",
"npm-command",
"math",
"emoji",
]
emoji = ["dep:emojis"]
math = [
"dep:katex",
"dep:pulldown-latex",
]
mermaid = []
npm-command = []
pretty-code = ["dep:dmc-highlight"]
[lib]
name = "dmc_transform"
path = "src/lib.rs"
[[bin]]
name = "transform"
path = "transform-samples/transform.rs"
[[test]]
name = "bare_url"
path = "tests/bare_url.rs"
[[test]]
name = "component_source"
path = "tests/component_source.rs"
[[test]]
name = "disable_gfm"
path = "tests/disable_gfm.rs"
[[test]]
name = "math_preprocess"
path = "tests/math_preprocess.rs"
[[test]]
name = "pipeline"
path = "tests/pipeline.rs"
[[test]]
name = "pretty_code"
path = "tests/pretty_code.rs"
[dependencies.blake3]
version = "1"
optional = true
[dependencies.dmc-diagnostic]
version = "0.3.2"
features = [
"parser",
"transform",
]
[dependencies.dmc-highlight]
version = "0.3.2"
optional = true
[dependencies.dmc-lexer]
version = "0.3.2"
[dependencies.dmc-parser]
version = "0.3.2"
[dependencies.duck-diagnostic]
version = "0.7.1"
[dependencies.emojis]
version = "0.8"
optional = true
[dependencies.pulldown-latex]
version = "0.7"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["preserve_order"]
[dev-dependencies.pretty_assertions]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[target.'cfg(not(target_os = "windows"))'.dependencies.katex]
version = "0.4"
features = ["quick-js"]
optional = true
default-features = false
[target.'cfg(target_os = "windows")'.dependencies.katex]
version = "0.4"
features = ["duktape"]
optional = true
default-features = false