2016-09-19 23:24:01 +00:00
|
|
|
[package]
|
|
|
|
name = "rocket_contrib"
|
2019-05-13 23:18:48 +00:00
|
|
|
version = "0.5.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."
|
2020-10-21 11:54:24 +00:00
|
|
|
documentation = "https://api.rocket.rs/master/rocket_contrib/"
|
2016-12-23 12:20:46 +00:00
|
|
|
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"]
|
2020-06-04 05:36:42 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2019-06-13 02:17:59 +00:00
|
|
|
edition = "2018"
|
2016-09-19 23:24:01 +00:00
|
|
|
|
|
|
|
[features]
|
2018-10-07 00:24:11 +00:00
|
|
|
# Internal use only.
|
2021-02-23 02:12:30 +00:00
|
|
|
templates = ["serde", "serde_json", "glob", "notify", "normpath"]
|
2020-09-03 05:41:31 +00:00
|
|
|
databases = [
|
2020-12-24 01:02:40 +00:00
|
|
|
"serde", "r2d2", "tokio/rt", "tokio/rt-multi-thread",
|
2020-09-03 05:41:31 +00:00
|
|
|
"rocket_contrib_codegen/database_attribute"
|
|
|
|
]
|
2018-10-07 00:24:11 +00:00
|
|
|
|
|
|
|
# User-facing features.
|
|
|
|
default = ["json", "serve"]
|
2019-12-11 00:34:23 +00:00
|
|
|
json = ["serde", "serde_json", "tokio/io-util"]
|
|
|
|
msgpack = ["serde", "rmp-serde", "tokio/io-util"]
|
2016-09-22 11:12:07 +00:00
|
|
|
tera_templates = ["tera", "templates"]
|
|
|
|
handlebars_templates = ["handlebars", "templates"]
|
2018-11-08 17:01:58 +00:00
|
|
|
helmet = ["time"]
|
2018-10-07 00:24:11 +00:00
|
|
|
serve = []
|
2018-10-02 17:15:34 +00:00
|
|
|
compression = ["brotli_compression", "gzip_compression"]
|
|
|
|
brotli_compression = ["brotli"]
|
|
|
|
gzip_compression = ["flate2"]
|
2020-07-22 12:47:24 +00:00
|
|
|
uuid = ["serde", "_uuid"]
|
2018-08-15 09:07:17 +00:00
|
|
|
|
2018-10-07 00:24:11 +00:00
|
|
|
# The barage of user-facing database features.
|
|
|
|
diesel_sqlite_pool = ["databases", "diesel/sqlite", "diesel/r2d2"]
|
|
|
|
diesel_postgres_pool = ["databases", "diesel/postgres", "diesel/r2d2"]
|
|
|
|
postgres_pool = ["databases", "postgres", "r2d2_postgres"]
|
|
|
|
sqlite_pool = ["databases", "rusqlite", "r2d2_sqlite"]
|
2019-01-04 16:19:09 +00:00
|
|
|
memcache_pool = ["databases", "memcache", "r2d2-memcache"]
|
2021-03-27 09:27:20 +00:00
|
|
|
diesel_mysql_pool = ["databases", "diesel/mysql", "diesel/r2d2"]
|
2016-09-22 11:12:07 +00:00
|
|
|
|
2016-09-19 23:24:01 +00:00
|
|
|
[dependencies]
|
2018-10-07 00:24:11 +00:00
|
|
|
# Global dependencies.
|
2021-04-23 14:55:55 +00:00
|
|
|
tokio = { version = "1.4", optional = true }
|
2019-05-13 23:18:48 +00:00
|
|
|
rocket_contrib_codegen = { version = "0.5.0-dev", path = "../codegen", optional = true }
|
|
|
|
rocket = { version = "0.5.0-dev", path = "../../core/lib/", default-features = false }
|
2018-01-29 21:16:04 +00:00
|
|
|
log = "0.4"
|
2016-09-19 23:24:01 +00:00
|
|
|
|
2017-02-08 03:40:14 +00:00
|
|
|
# Serialization and templating dependencies.
|
2021-03-04 11:18:05 +00:00
|
|
|
serde = { version = "1.0", optional = true, features = ["derive"] }
|
2018-08-14 18:19:10 +00:00
|
|
|
serde_json = { version = "1.0.26", optional = true }
|
2021-03-27 09:27:20 +00:00
|
|
|
rmp-serde = { version = "0.15.0", optional = true }
|
2016-09-22 11:12:07 +00:00
|
|
|
|
2018-10-07 00:24:11 +00:00
|
|
|
# Templating dependencies.
|
2020-06-07 05:55:44 +00:00
|
|
|
handlebars = { version = "3.0", optional = true }
|
2019-05-16 20:18:16 +00:00
|
|
|
glob = { version = "0.3", optional = true }
|
2020-01-14 16:20:06 +00:00
|
|
|
tera = { version = "1.0.2", optional = true }
|
2020-06-06 23:31:02 +00:00
|
|
|
notify = { version = "4.0.6", optional = true }
|
2021-02-23 02:12:30 +00:00
|
|
|
normpath = { version = "0.2", 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 }
|
2021-02-05 19:13:22 +00:00
|
|
|
postgres = { version = "0.19", optional = true }
|
2018-07-21 22:11:08 +00:00
|
|
|
r2d2 = { version = "0.8", optional = true }
|
2021-02-05 19:13:22 +00:00
|
|
|
r2d2_postgres = { version = "0.18", optional = true }
|
2021-03-27 09:27:20 +00:00
|
|
|
rusqlite = { version = "0.24", optional = true }
|
|
|
|
r2d2_sqlite = { version = "0.17", optional = true }
|
2021-01-09 19:02:48 +00:00
|
|
|
memcache = { version = "0.15", optional = true }
|
|
|
|
r2d2-memcache = { version = "0.6", optional = true }
|
2018-07-21 22:11:08 +00:00
|
|
|
|
2018-08-30 22:52:54 +00:00
|
|
|
# SpaceHelmet dependencies
|
2020-03-25 21:39:55 +00:00
|
|
|
time = { version = "0.2.9", optional = true }
|
2018-08-30 22:52:54 +00:00
|
|
|
|
2018-10-02 17:15:34 +00:00
|
|
|
# Compression dependencies
|
2019-04-27 15:41:49 +00:00
|
|
|
brotli = { version = "3.3", optional = true }
|
2018-10-02 17:15:34 +00:00
|
|
|
flate2 = { version = "1.0", optional = true }
|
|
|
|
|
2020-07-22 12:47:24 +00:00
|
|
|
[dependencies._uuid]
|
|
|
|
package = "uuid"
|
|
|
|
version = ">=0.7.0, <0.9.0"
|
|
|
|
optional = true
|
|
|
|
features = ["serde"]
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
serde_test = "1.0.114"
|
|
|
|
|
2017-06-30 09:41:00 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|