2016-09-19 23:24:01 +00:00
|
|
|
[package]
|
|
|
|
name = "rocket_contrib"
|
2017-08-11 16:32:27 +00:00
|
|
|
version = "0.4.0-dev"
|
2016-09-19 23:24:01 +00:00
|
|
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
2016-12-23 12:20:46 +00:00
|
|
|
description = "Community contributed libraries for the Rocket web framework."
|
|
|
|
documentation = "https://api.rocket.rs/rocket_contrib/"
|
|
|
|
homepage = "https://rocket.rs"
|
|
|
|
repository = "https://github.com/SergioBenitez/Rocket"
|
2018-06-03 17:39:32 +00:00
|
|
|
readme = "../../README.md"
|
2016-12-23 12:20:46 +00:00
|
|
|
keywords = ["rocket", "web", "framework", "contrib", "contributed"]
|
|
|
|
license = "MIT/Apache-2.0"
|
2016-09-19 23:24:01 +00:00
|
|
|
|
|
|
|
[features]
|
2018-08-13 09:13:55 +00:00
|
|
|
default = ["json", "static_files"]
|
2016-09-19 23:24:01 +00:00
|
|
|
json = ["serde", "serde_json"]
|
2017-02-08 03:40:14 +00:00
|
|
|
msgpack = ["serde", "rmp-serde"]
|
2016-09-22 11:12:07 +00:00
|
|
|
tera_templates = ["tera", "templates"]
|
|
|
|
handlebars_templates = ["handlebars", "templates"]
|
2018-08-13 09:13:55 +00:00
|
|
|
static_files = []
|
2018-08-18 23:50:55 +00:00
|
|
|
# Internal use only.
|
|
|
|
templates = ["serde", "serde_json", "glob"]
|
2018-08-15 09:07:17 +00:00
|
|
|
|
|
|
|
# Database pooling features.
|
|
|
|
# Iternal use only.
|
2018-07-21 22:11:08 +00:00
|
|
|
database_pool_codegen = ["rocket_contrib_codegen", "rocket_contrib_codegen/database_attribute"]
|
|
|
|
database_pool = ["r2d2", "database_pool_codegen"]
|
2018-08-15 09:07:17 +00:00
|
|
|
# External features.
|
2018-08-17 18:16:36 +00:00
|
|
|
diesel_postgres_pool = ["database_pool", "diesel/postgres", "diesel/r2d2"]
|
2018-07-21 22:11:08 +00:00
|
|
|
diesel_sqlite_pool = ["database_pool", "diesel/sqlite", "diesel/r2d2"]
|
|
|
|
diesel_mysql_pool = ["database_pool", "diesel/mysql", "diesel/r2d2"]
|
|
|
|
postgres_pool = ["database_pool", "postgres", "r2d2_postgres"]
|
|
|
|
mysql_pool = ["database_pool", "mysql", "r2d2_mysql"]
|
|
|
|
sqlite_pool = ["database_pool", "rusqlite", "r2d2_sqlite"]
|
|
|
|
cypher_pool = ["database_pool", "rusted_cypher", "r2d2_cypher"]
|
|
|
|
redis_pool = ["database_pool", "redis", "r2d2_redis"]
|
2016-09-22 11:12:07 +00:00
|
|
|
|
2016-09-19 23:24:01 +00:00
|
|
|
[dependencies]
|
2018-06-03 16:44:38 +00:00
|
|
|
rocket = { version = "0.4.0-dev", path = "../../core/lib/" }
|
2018-01-29 21:16:04 +00:00
|
|
|
log = "0.4"
|
2016-09-19 23:24:01 +00:00
|
|
|
|
2017-01-10 21:33:30 +00:00
|
|
|
# UUID dependencies.
|
2018-02-21 08:57:39 +00:00
|
|
|
uuid = { version = ">= 0.5, <= 0.6", optional = true }
|
2017-01-10 21:33:30 +00:00
|
|
|
|
2017-02-08 03:40:14 +00:00
|
|
|
# Serialization and templating dependencies.
|
2017-04-25 00:37:18 +00:00
|
|
|
serde = { version = "1.0", optional = true }
|
2018-08-14 18:19:10 +00:00
|
|
|
serde_json = { version = "1.0.26", optional = true }
|
2017-04-25 00:37:18 +00:00
|
|
|
rmp-serde = { version = "^0.13", optional = true }
|
2016-09-22 11:12:07 +00:00
|
|
|
|
|
|
|
# Templating dependencies only.
|
2018-07-22 09:25:55 +00:00
|
|
|
handlebars = { version = "1.0", optional = true }
|
|
|
|
glob = { version = "0.2", optional = true }
|
2018-01-24 02:53:55 +00:00
|
|
|
tera = { version = "0.11", optional = true }
|
2017-06-30 09:41:00 +00:00
|
|
|
|
2018-07-21 22:11:08 +00:00
|
|
|
# Database dependencies
|
|
|
|
diesel = { version = "1.0", default-features = false, optional = true }
|
|
|
|
postgres = { version = "0.15", optional = true }
|
|
|
|
r2d2 = { version = "0.8", optional = true }
|
|
|
|
r2d2_postgres = { version = "0.14", optional = true }
|
|
|
|
mysql = { version = "14", optional = true }
|
|
|
|
r2d2_mysql = { version = "9", optional = true }
|
|
|
|
rusqlite = { version = "0.13.0", optional = true }
|
|
|
|
r2d2_sqlite = { version = "0.5", optional = true }
|
|
|
|
rusted_cypher = { version = "1", optional = true }
|
|
|
|
r2d2_cypher = { version = "0.4", optional = true }
|
2018-08-18 23:50:55 +00:00
|
|
|
redis = { version = "0.9", optional = true }
|
|
|
|
r2d2_redis = { version = "0.8", optional = true }
|
2018-07-21 22:11:08 +00:00
|
|
|
|
|
|
|
# Contrib codegen dependencies
|
|
|
|
rocket_contrib_codegen = { path = "../codegen", optional = true }
|
|
|
|
|
2018-07-09 12:36:40 +00:00
|
|
|
[dev-dependencies]
|
|
|
|
rocket_codegen = { version = "0.4.0-dev", path = "../../core/codegen" }
|
|
|
|
|
2018-01-10 19:27:51 +00:00
|
|
|
[target.'cfg(debug_assertions)'.dependencies]
|
|
|
|
notify = { version = "^4.0" }
|
|
|
|
|
2017-06-30 09:41:00 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|