mdcast 0.3.0

Markdown → DOCX/ODT/PDF/PPTX/HTML-reveal with per-page layout templates, powered by pandoc and typst
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "mdcast"
version = "0.3.0"
authors = ["Martin Miksanik <miksanik@gmail.com>"]
build = false
exclude = [
    ".claude/",
    "PROJECT_PLAN.md",
    "examples/dump_pandoc_input.rs",
    "examples/dump_typst_driver.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Markdown → DOCX/ODT/PDF/PPTX/HTML-reveal with per-page layout templates, powered by pandoc and typst"
homepage = "https://github.com/xmiksay/mdcast"
documentation = "https://docs.rs/mdcast"
readme = "README.md"
keywords = [
    "markdown",
    "pandoc",
    "typst",
    "slides",
    "document",
]
categories = [
    "text-processing",
    "template-engine",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/xmiksay/mdcast"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "pandoc",
    "typst",
    "rt-multi-thread",
    "mermaid",
]
mermaid = ["dep:mermaid-svg"]
pandoc = [
    "dep:zip",
    "dep:quick-xml",
]
remote-images = ["dep:reqwest"]
rt-multi-thread = ["tokio/rt-multi-thread"]
typst = [
    "dep:typst",
    "dep:typst-pdf",
    "dep:typst-as-lib",
    "dep:serde_json",
]
typst-html = [
    "typst",
    "dep:typst-html",
    "typst-as-lib/typst-html",
]

[lib]
name = "mdcast"
path = "src/lib.rs"

[[bin]]
name = "mdcast"
path = "src/bin/mdcast/main.rs"
required-features = ["rt-multi-thread"]

[[test]]
name = "async_provider"
path = "tests/async_provider.rs"

[[test]]
name = "cover_deck_classification"
path = "tests/cover_deck_classification.rs"

[[test]]
name = "mermaid_render"
path = "tests/mermaid_render.rs"

[[test]]
name = "remote_images"
path = "tests/remote_images.rs"

[[test]]
name = "render_smoke"
path = "tests/render_smoke.rs"

[[test]]
name = "render_to_bytes"
path = "tests/render_to_bytes.rs"

[[test]]
name = "typst_fonts"
path = "tests/typst_fonts.rs"

[[test]]
name = "typst_template"
path = "tests/typst_template.rs"

[[test]]
name = "typst_template_html"
path = "tests/typst_template_html.rs"

[[test]]
name = "typst_unresolved_image"
path = "tests/typst_unresolved_image.rs"

[dependencies.anyhow]
version = "1"

[dependencies.bytes]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.futures]
version = "0.3"

[dependencies.mermaid-svg]
version = "0.7"
optional = true

[dependencies.pulldown-cmark]
version = "0.13"
default-features = false

[dependencies.quick-xml]
version = "0.41"
optional = true

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
optional = true
default-features = false

[dependencies.rust-embed]
version = "8"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.tempfile]
version = "3"

[dependencies.tokio]
version = "1"
features = [
    "fs",
    "process",
    "rt",
    "macros",
    "time",
    "io-util",
]

[dependencies.toml]
version = "0.9"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.typst]
version = "0.14"
optional = true

[dependencies.typst-as-lib]
version = "0.15"
features = [
    "typst-kit-fonts",
    "typst-kit-embed-fonts",
]
optional = true

[dependencies.typst-html]
version = "0.14"
optional = true

[dependencies.typst-pdf]
version = "0.14"
optional = true

[dependencies.zip]
version = "2"
features = ["deflate"]
optional = true
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
]