Rocket/contrib/dyn_templates/Cargo.toml
Sergio Benitez 0b2fcb9f4b Use Figment's 'Value' in contrib templating.
Previously, 'serde_json::Value' was used to store the serialized
template context. This value does not represent all of serde's data
model. This means we may fail to serialize a valid Rust value into it,
for instance, 128-bit integers. This is reduced with Figment's 'Value',
which supports the majority if not all of the serde data model.

At present, all supported templating engines use 'serde_json::Value', so
in practice, this commit has no effect but to reduce local dependencies
and provide better error messages for bad contexts.
2021-06-25 09:08:49 -07:00

40 lines
912 B
TOML

[package]
name = "rocket_dyn_templates"
version = "0.1.0-rc.1"
authors = ["Sergio Benitez <sb@sergio.bz>"]
description = "Dynamic templating engine integration for Rocket."
documentation = "https://api.rocket.rs/v0.5-rc/rocket_dyn_templates/"
homepage = "https://rocket.rs"
repository = "https://github.com/SergioBenitez/Rocket/contrib/dyn_templates"
readme = "README.md"
keywords = ["rocket", "framework", "templates", "templating", "engine"]
license = "MIT OR Apache-2.0"
edition = "2018"
[features]
tera = ["tera_"]
handlebars = ["handlebars_"]
[dependencies]
glob = "0.3"
notify = "4.0.6"
normpath = "0.3"
[dependencies.rocket]
version = "0.5.0-rc.1"
path = "../../core/lib"
default-features = false
[dependencies.tera_]
package = "tera"
version = "1.10.0"
optional = true
[dependencies.handlebars_]
package = "handlebars"
version = "3.0"
optional = true
[package.metadata.docs.rs]
all-features = true