[package] name = "handlebars" version = "6.2.0" authors = ["Ning Sun "] description = "Handlebars templating implemented in Rust." license = "MIT" keywords = ["handlebars", "templating", "web"] categories = ["template-engine", "web-programming"] homepage = "https://github.com/sunng87/handlebars-rust" repository = "https://github.com/sunng87/handlebars-rust" documentation = "https://docs.rs/crate/handlebars/" readme = "README.md" edition = "2021" rust-version = "1.72" [lib] name = "handlebars" path = "src/lib.rs" [[bin]] name = "handlebars-cli" path = "src/cli.rs" [dependencies] log = { version = "0.4.0" } thiserror = "1" pest = "2.1.0" pest_derive = "2.1.0" serde = "1.0.0" serde_json = "1.0.39" num-order = "1.2.0" walkdir = { version = "2.2.3", optional = true } rhai = { version = "1.16.1", optional = true, features = ["sync", "serde"] } rust-embed = { version = "8.0.0", optional = true, features = ["include-exclude"] } heck = { version = "0.5", optional = true } [dev-dependencies] env_logger = "0.11" serde_derive = "1.0.75" tempfile = "3.0.0" criterion = "0.5" tiny_http = "0.12" time = { version = "0.3.7", features = ["serde", "formatting", "parsing"]} [target.'cfg(unix)'.dev-dependencies] pprof = { version = "0.13", features = ["flamegraph", "prost-codec"] } [features] dir_source = ["walkdir"] script_helper = ["rhai"] no_logging = [] default = [] string_helpers = ["heck"] [badges] maintenance = { status = "actively-developed" } [[bench]] name = "bench" harness = false [package.metadata.docs.rs] features = ["dir_source", "script_helper", "rust-embed"] rustdoc-args = ["--cfg", "docsrs"] [[example]] name = "script" required-features = ["script_helper"]