mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-27 04:42:40 +00:00
b1d05d20ac
This completes the graduation of stable 'contrib' features to 'core'. Closes #1107.
75 lines
2.7 KiB
TOML
75 lines
2.7 KiB
TOML
[package]
|
|
name = "rocket_contrib"
|
|
version = "0.5.0-dev"
|
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
|
description = "Community contributed libraries for the Rocket web framework."
|
|
documentation = "https://api.rocket.rs/master/rocket_contrib/"
|
|
homepage = "https://rocket.rs"
|
|
repository = "https://github.com/SergioBenitez/Rocket"
|
|
readme = "../../README.md"
|
|
keywords = ["rocket", "web", "framework", "contrib", "contributed"]
|
|
license = "MIT OR Apache-2.0"
|
|
edition = "2018"
|
|
|
|
[features]
|
|
# Internal use only.
|
|
templates = ["serde", "serde_json", "glob", "notify", "normpath"]
|
|
databases = [
|
|
"serde", "r2d2", "tokio/rt", "tokio/rt-multi-thread",
|
|
"rocket_contrib_codegen/database_attribute"
|
|
]
|
|
|
|
# User-facing features.
|
|
default = []
|
|
tera_templates = ["tera", "templates"]
|
|
handlebars_templates = ["handlebars", "templates"]
|
|
compression = ["brotli_compression", "gzip_compression"]
|
|
brotli_compression = ["brotli"]
|
|
gzip_compression = ["flate2"]
|
|
|
|
# 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"]
|
|
memcache_pool = ["databases", "memcache", "r2d2-memcache"]
|
|
diesel_mysql_pool = ["databases", "diesel/mysql", "diesel/r2d2"]
|
|
|
|
[dependencies]
|
|
# Global dependencies.
|
|
tokio = { version = "1.4", optional = true }
|
|
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"
|
|
|
|
# Serialization and templating dependencies.
|
|
serde = { version = "1.0", optional = true, features = ["derive"] }
|
|
serde_json = { version = "1.0.26", optional = true }
|
|
|
|
# Templating dependencies.
|
|
handlebars = { version = "3.0", optional = true }
|
|
glob = { version = "0.3", optional = true }
|
|
tera = { version = "1.10.0", optional = true }
|
|
notify = { version = "4.0.6", optional = true }
|
|
normpath = { version = "0.2", optional = true }
|
|
|
|
# Database dependencies
|
|
diesel = { version = "1.0", default-features = false, optional = true }
|
|
postgres = { version = "0.19", optional = true }
|
|
r2d2 = { version = "0.8", optional = true }
|
|
r2d2_postgres = { version = "0.18", optional = true }
|
|
rusqlite = { version = "0.24", optional = true }
|
|
r2d2_sqlite = { version = "0.17", optional = true }
|
|
memcache = { version = "0.15", optional = true }
|
|
r2d2-memcache = { version = "0.6", optional = true }
|
|
|
|
# Compression dependencies
|
|
brotli = { version = "3.3", optional = true }
|
|
flate2 = { version = "1.0", optional = true }
|
|
|
|
[dev-dependencies]
|
|
serde_test = "1.0.114"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|