2016-09-19 23:24:01 +00:00
|
|
|
[package]
|
|
|
|
name = "rocket_contrib"
|
|
|
|
version = "0.0.8"
|
|
|
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["json"]
|
|
|
|
json = ["serde", "serde_json"]
|
2016-09-22 11:12:07 +00:00
|
|
|
tera_templates = ["tera", "templates"]
|
|
|
|
handlebars_templates = ["handlebars", "templates"]
|
|
|
|
|
|
|
|
# Internal use only.
|
|
|
|
templates = ["serde", "serde_json", "lazy_static_macro", "glob"]
|
|
|
|
lazy_static_macro = ["lazy_static"]
|
2016-09-19 23:24:01 +00:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
rocket = { path = "../lib/" }
|
|
|
|
log = "*"
|
|
|
|
|
2016-09-22 11:12:07 +00:00
|
|
|
# JSON and templating dependencies.
|
2016-09-19 23:24:01 +00:00
|
|
|
serde = { version = "*", optional = true }
|
|
|
|
serde_json = { version = "*", optional = true }
|
2016-09-22 11:12:07 +00:00
|
|
|
|
|
|
|
# Templating dependencies only.
|
|
|
|
handlebars = { version = "*", optional = true, features = ["serde_type"] }
|
|
|
|
glob = { version = "*", optional = true }
|
|
|
|
lazy_static = { version = "*", optional = true }
|
|
|
|
|
|
|
|
# Tera dependency
|
|
|
|
[dependencies.tera]
|
|
|
|
git = "https://github.com/SergioBenitez/tera"
|
|
|
|
branch = "array-get-filter"
|
|
|
|
optional = true
|