| 1 |
[package] |
| 2 |
name = "handlebars" |
| 3 |
version = "5.1.2" |
| 4 |
authors = ["Ning Sun <[email protected]>"] |
| 5 |
description = "Handlebars templating implemented in Rust." |
| 6 |
license = "MIT" |
| 7 |
keywords = ["handlebars", "templating", "web"] |
| 8 |
categories = ["template-engine", "web-programming"] |
| 9 |
homepage = "https://github.com/sunng87/handlebars-rust" |
| 10 |
repository = "https://github.com/sunng87/handlebars-rust" |
| 11 |
documentation = "https://docs.rs/crate/handlebars/" |
| 12 |
readme = "README.md" |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.72" |
| 15 |
|
| 16 |
[lib] |
| 17 |
name = "handlebars" |
| 18 |
path = "src/lib.rs" |
| 19 |
|
| 20 |
[[bin]] |
| 21 |
name = "handlebars-cli" |
| 22 |
path = "src/cli.rs" |
| 23 |
|
| 24 |
[dependencies] |
| 25 |
log = { version = "0.4.0" } |
| 26 |
thiserror = "1" |
| 27 |
pest = "2.1.0" |
| 28 |
pest_derive = "2.1.0" |
| 29 |
serde = "1.0.0" |
| 30 |
serde_json = "1.0.39" |
| 31 |
walkdir = { version = "2.2.3", optional = true } |
| 32 |
rhai = { version = "1.16.1", optional = true, features = ["sync", "serde"] } |
| 33 |
rust-embed = { version = "8.0.0", optional = true, features = ["include-exclude"] } |
| 34 |
heck = { version = "0.5", optional = true } |
| 35 |
|
| 36 |
[dev-dependencies] |
| 37 |
env_logger = "0.10" |
| 38 |
serde_derive = "1.0.75" |
| 39 |
tempfile = "3.0.0" |
| 40 |
criterion = "0.5" |
| 41 |
tiny_http = "0.12" |
| 42 |
time = { version = "0.3.7", features = ["serde", "formatting", "parsing"]} |
| 43 |
|
| 44 |
[target.'cfg(unix)'.dev-dependencies] |
| 45 |
pprof = { version = "0.13", features = ["flamegraph", "prost-codec"] } |
| 46 |
|
| 47 |
[features] |
| 48 |
dir_source = ["walkdir"] |
| 49 |
script_helper = ["rhai"] |
| 50 |
no_logging = [] |
| 51 |
default = [] |
| 52 |
string_helpers = ["heck"] |
| 53 |
|
| 54 |
[badges] |
| 55 |
maintenance = { status = "actively-developed" } |
| 56 |
|
| 57 |
[[bench]] |
| 58 |
name = "bench" |
| 59 |
harness = false |
| 60 |
|
| 61 |
[package.metadata.docs.rs] |
| 62 |
features = ["dir_source", "script_helper", "rust-embed"] |
| 63 |
rustdoc-args = ["--cfg", "docsrs"] |
| 64 |
|
| 65 |
[[example]] |
| 66 |
name = "script" |
| 67 |
required-features = ["script_helper"] |