[package]
edition = "2024"
rust-version = "1.95"
name = "dmc-core"
version = "0.3.2"
authors = ["gentleduck"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Engine, CLI, watch mode, and collection builds for the dmc MDX 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]
cli = [
"dep:clap",
"dep:toml",
]
default = [
"cli",
"watch",
"pretty-code",
"math",
"emoji",
]
emoji = ["dmc-transform/emoji"]
math = ["dmc-transform/math"]
pretty-code = ["dmc-transform/pretty-code"]
watch = [
"dep:notify",
"dep:notify-debouncer-mini",
]
[lib]
name = "dmc"
path = "src/lib.rs"
[[bin]]
name = "dmc"
path = "src/main.rs"
required-features = [
"cli",
"watch",
]
[[example]]
name = "bench"
path = "examples/bench.rs"
[[example]]
name = "flamegraph"
path = "examples/flamegraph.rs"
[[example]]
name = "flamegraph_consumer"
path = "examples/flamegraph_consumer.rs"
[[example]]
name = "profile"
path = "examples/profile.rs"
[[test]]
name = "mdx_body_accordion"
path = "tests/mdx_body_accordion.rs"
[[test]]
name = "pretty_code_html"
path = "tests/pretty_code_html.rs"
[[bench]]
name = "compile"
path = "benches/compile.rs"
harness = false
[dependencies.blake3]
version = "1"
[dependencies.clap]
version = "4"
features = ["derive"]
optional = true
[dependencies.dmc-codegen]
version = "0.3.2"
[dependencies.dmc-diagnostic]
version = "0.3.2"
features = [
"lexer",
"parser",
"transform",
"codegen",
"core",
]
[dependencies.dmc-lexer]
version = "0.3.2"
[dependencies.dmc-parser]
version = "0.3.2"
[dependencies.dmc-schema]
version = "0.3.2"
[dependencies.dmc-transform]
version = "0.3.2"
[dependencies.duck-diagnostic]
version = "0.7.1"
[dependencies.globwalk]
version = "0.9"
[dependencies.notify]
version = "8"
optional = true
[dependencies.notify-debouncer-mini]
version = "0.4"
optional = true
[dependencies.rayon]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["preserve_order"]
[dependencies.serde_yaml]
version = "0.9"
[dependencies.tempfile]
version = "3"
[dependencies.toml]
version = "1.1"
optional = true
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.insta]
version = "1"
features = [
"json",
"redactions",
]
[dev-dependencies.plotters]
version = "0.3"
features = [
"svg_backend",
"line_series",
"bitmap_encoder",
]
default-features = false
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.pretty_assertions]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[target."cfg(unix)".dev-dependencies.pprof]
version = "0.14"
features = ["flamegraph"]