Rocket/contrib/dyn_templates/Cargo.toml
Sergio Benitez ed5c755bb6 Avoid using 'glob' to walk templates directory.
Previously, `dyn_templates` walked the user-provided `template_dir` path by
constructing a glob pattern prefixed with `template_dir`. If `template_dir`
contained characters recognized by the glob pattern parser, then at best the
pattern failed to parse, and at worst, incorrect directories were searched.

This commit removes the use of `glob` to walk the templates directory and
instead uses `walkdir`, obviating the issues described above.

Fixes #2627.
2023-10-14 15:00:36 -07:00

41 lines
944 B
TOML

[package]
name = "rocket_dyn_templates"
version = "0.1.0-rc.3"
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/tree/master/contrib/dyn_templates"
readme = "README.md"
keywords = ["rocket", "framework", "templates", "templating", "engine"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.56"
[features]
tera = ["tera_"]
handlebars = ["handlebars_"]
[dependencies]
walkdir = "2.4"
notify = "6"
normpath = "1"
[dependencies.rocket]
version = "=0.5.0-rc.3"
path = "../../core/lib"
default-features = false
[dependencies.tera_]
package = "tera"
version = "1.10.0"
optional = true
[dependencies.handlebars_]
package = "handlebars"
version = "4.1"
optional = true
[package.metadata.docs.rs]
all-features = true