[package]
name = "cph-typst"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
cph-diag = { workspace = true }
cph-model = { workspace = true }
cph-schema = { path = "../cph-schema" }
toml = { workspace = true }

# Embed the `render/` package (cph-render + vendored @preview/numbly) INTO the
# binary so an installed `cph` is self-contained — no reliance on a source
# checkout living at a compile-time path. `dirs` locates a per-user cache dir to
# extract the embedded tree to (typst's World reads render files from disk).
include_dir = "0.7"
dirs = "6"

typst = "=0.15.0"
typst-layout = "=0.15.0"
typst-pdf = "=0.15.0"
typst-syntax = "=0.15.0"
typst-library = "=0.15.0"
typst-kit = { version = "=0.15.0", features = [
    "scan-fonts",
    "embedded-fonts",
] }

[dev-dependencies]
cph-model = { workspace = true }
tempfile = "3"
