Rocket/contrib/lib/Cargo.toml

92 lines
3.4 KiB
TOML
Raw Normal View History

[package]
name = "rocket_contrib"
2019-05-13 23:18:48 +00:00
version = "0.5.0-dev"
authors = ["Sergio Benitez <sb@sergio.bz>"]
description = "Community contributed libraries for the Rocket web framework."
2019-05-13 23:18:48 +00:00
documentation = "https://api.rocket.rs/v0.5/rocket_contrib/"
homepage = "https://rocket.rs"
repository = "https://github.com/SergioBenitez/Rocket"
2018-06-03 17:39:32 +00:00
readme = "../../README.md"
keywords = ["rocket", "web", "framework", "contrib", "contributed"]
license = "MIT/Apache-2.0"
2019-06-13 02:17:59 +00:00
edition = "2018"
[features]
2018-10-07 00:24:11 +00:00
# Internal use only.
templates = ["serde", "serde_json", "glob"]
databases = ["r2d2", "rocket_contrib_codegen/database_attribute"]
# User-facing features.
default = ["json", "serve"]
json = ["serde", "serde_json"]
2017-02-08 03:40:14 +00:00
msgpack = ["serde", "rmp-serde"]
tera_templates = ["tera", "templates"]
handlebars_templates = ["handlebars", "templates"]
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"]
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"]
diesel_mysql_pool = ["databases", "diesel/mysql", "diesel/r2d2"]
postgres_pool = ["databases", "postgres", "r2d2_postgres"]
2018-10-27 20:04:52 +00:00
mysql_pool = ["databases", "mysql", "r2d2_mysql"]
2018-10-07 00:24:11 +00:00
sqlite_pool = ["databases", "rusqlite", "r2d2_sqlite"]
cypher_pool = ["databases", "rusted_cypher", "r2d2_cypher"]
redis_pool = ["databases", "redis", "r2d2_redis"]
mongodb_pool = ["databases", "mongodb", "r2d2-mongodb"]
memcache_pool = ["databases", "memcache", "r2d2-memcache"]
[dependencies]
2018-10-07 00:24:11 +00:00
# Global dependencies.
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 }
log = "0.4"
2017-02-08 03:40:14 +00:00
# Serialization and templating dependencies.
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0.26", optional = true }
rmp-serde = { version = "^0.13", optional = true }
2018-10-07 00:24:11 +00:00
# Templating dependencies.
2019-07-14 02:25:30 +00:00
handlebars = { version = "2.0", optional = true }
2019-05-16 20:18:16 +00:00
glob = { version = "0.3", optional = true }
tera = { version = "0.11", optional = true }
2017-06-30 09:41:00 +00:00
2018-10-07 00:24:11 +00:00
# UUID dependencies.
uuid = { version = ">=0.7.0, <0.9.0", optional = true }
2018-10-07 00:24:11 +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 = "16.0", optional = true }
r2d2_mysql = { version = "16.0", optional = true }
2019-01-27 15:52:03 +00:00
rusqlite = { version = "0.16.0", optional = true }
r2d2_sqlite = { version = "0.8", optional = true }
rusted_cypher = { version = "1", optional = true }
r2d2_cypher = { version = "0.4", optional = true }
redis = { version = "0.10", optional = true }
r2d2_redis = { version = "0.9", optional = true }
mongodb = { version = "0.3.12", optional = true }
r2d2-mongodb = { version = "0.2.0", optional = true }
memcache = { version = "0.11", optional = true }
r2d2-memcache = { version = "0.3", optional = true }
2018-08-30 22:52:54 +00:00
# SpaceHelmet dependencies
time = { version = "0.1.40", optional = true }
2018-10-02 17:15:34 +00:00
# Compression dependencies
brotli = { version = "3.3", optional = true }
2018-10-02 17:15:34 +00:00
flate2 = { version = "1.0", optional = true }
[target.'cfg(debug_assertions)'.dependencies]
2018-11-18 23:02:36 +00:00
notify = { version = "^4.0.6" }
2017-06-30 09:41:00 +00:00
[package.metadata.docs.rs]
all-features = true