[package]
edition = "2024"
rust-version = "1.85"
name = "md-tmpl"
version = "0.7.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight template engine for .tmpl.md prompt files with typed frontmatter"
readme = "README.md"
keywords = [
"template",
"prompt",
"markdown",
"llm",
"agent",
]
categories = [
"template-engine",
"text-processing",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/domenukk/md-tmpl"
[features]
default = [
"std",
"serde",
"macros",
]
macros = ["dep:md-tmpl-macros"]
serde = ["md-tmpl-core/serde"]
std = ["md-tmpl-core/std"]
[lib]
name = "md_tmpl"
path = "src/lib.rs"
[[test]]
name = "adv_m1_tests"
path = "tests/adv_m1_tests.rs"
required-features = ["std"]
[[test]]
name = "adv_m2_tests"
path = "tests/adv_m2_tests.rs"
[[test]]
name = "adv_m3_phase2_tests"
path = "tests/adv_m3_phase2_tests.rs"
[[test]]
name = "cross_crate_integration"
path = "tests/cross_crate_integration.rs"
[[test]]
name = "doc_examples"
path = "tests/doc_examples.rs"
[[test]]
name = "macros_integration"
path = "tests/macros_integration.rs"
[[test]]
name = "no_std_compat"
path = "tests/no_std_compat.rs"
[[test]]
name = "reexport_macros"
path = "tests/reexport_macros.rs"
[[test]]
name = "shared_compile_time"
path = "tests/shared_compile_time.rs"
required-features = [
"std",
"macros",
]
[[test]]
name = "typed_builder_integration"
path = "tests/typed_builder_integration.rs"
[[test]]
name = "yaml_conformance"
path = "tests/yaml_conformance.rs"
required-features = ["std"]
[[test]]
name = "yaml_cross_validation"
path = "tests/yaml_cross_validation.rs"
[[bench]]
name = "template_bench"
path = "benches/template_bench.rs"
harness = false
required-features = ["std"]
[dependencies.md-tmpl-core]
version = "0.7.0"
default-features = false
[dependencies.md-tmpl-macros]
version = "0.7.0"
features = ["serde"]
optional = true
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.flexbuffers]
version = "25.12"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_yaml]
version = "0.9"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.toml]
version = "0.8"
[build-dependencies.toml]
version = "0.8"
[lints.clippy]
implicit_hasher = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
warnings = "deny"