typst-template 0.2.0

Generate PDFs with Typst straight from your Rust types: derive Typst inputs from structs and render templates, on a reusable world for cheap repeated generation.
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 = "typst-template"
version = "0.2.0"
authors = ["Demiurg <developers@demiurg.hr>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generate PDFs with Typst straight from your Rust types: derive Typst inputs from structs and render templates, on a reusable world for cheap repeated generation."
readme = "README.md"
keywords = [
    "typst",
    "pdf",
    "template",
    "document",
]
categories = [
    "template-engine",
    "rendering",
]
license = "MIT"
repository = "https://github.com/demiurg-dev/typst-template"
resolver = "2"

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

[features]
chrono = ["dep:chrono"]
chrono-tz = [
    "chrono",
    "dep:chrono-tz",
]
default = ["derive"]
derive = ["dep:typst-template-derive"]
rust_decimal = ["dep:rust_decimal"]
serde_json = ["dep:serde_json"]
time = ["dep:time"]
time-tz = [
    "dep:time-tz",
    "time",
]
uuid = ["dep:uuid"]

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

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

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

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

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

[dependencies.chrono]
version = "0.4"
optional = true

[dependencies.chrono-tz]
version = "0.10"
optional = true

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

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

[dependencies.time]
version = "0.3"
features = ["local-offset"]
optional = true

[dependencies.time-tz]
version = "2"
optional = true

[dependencies.typst]
version = "0.15"

[dependencies.typst-kit]
version = "0.15"
features = [
    "embedded-fonts",
    "scan-fonts",
]
default-features = false

[dependencies.typst-layout]
version = "0.15"

[dependencies.typst-pdf]
version = "0.15"

[dependencies.typst-template-derive]
version = "0.2.0"
optional = true

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