Rocket/contrib/db_pools/lib/Cargo.toml

86 lines
2.0 KiB
TOML
Raw Normal View History

[package]
name = "rocket_db_pools"
2023-11-03 23:26:07 +00:00
version = "0.1.0"
authors = ["Sergio Benitez <sb@sergio.bz>", "Jeb Rosen <jeb@jebrosen.com>"]
description = "Rocket async database pooling support"
repository = "https://github.com/SergioBenitez/Rocket/contrib/db_pools"
readme = "../README.md"
keywords = ["rocket", "framework", "database", "pools"]
license = "MIT OR Apache-2.0"
2022-03-19 18:25:24 +00:00
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
all-features = true
[features]
# deadpool features
deadpool_postgres = ["deadpool-postgres", "deadpool"]
deadpool_redis = ["deadpool-redis", "deadpool"]
# sqlx features
sqlx_mysql = ["sqlx", "sqlx/mysql"]
sqlx_postgres = ["sqlx", "sqlx/postgres"]
sqlx_sqlite = ["sqlx", "sqlx/sqlite"]
sqlx_macros = ["sqlx/macros"]
# diesel features
diesel_postgres = ["diesel-async/postgres", "diesel-async/deadpool", "diesel", "deadpool"]
diesel_mysql = ["diesel-async/mysql", "diesel-async/deadpool", "diesel", "deadpool"]
# implicit features: mongodb
[dependencies.rocket]
path = "../../../core/lib"
2023-11-18 10:30:50 +00:00
version = "0.6.0-dev"
default-features = false
[dependencies.rocket_db_pools_codegen]
path = "../codegen"
2023-11-03 23:26:07 +00:00
version = "0.1.0"
[dependencies.deadpool]
version = "0.9"
default-features = false
features = ["rt_tokio_1", "managed"]
optional = true
[dependencies.deadpool-postgres]
version = "0.10"
default-features = false
features = ["rt_tokio_1"]
optional = true
[dependencies.deadpool-redis]
2023-06-08 22:38:22 +00:00
version = "0.12"
default-features = false
features = ["rt_tokio_1"]
optional = true
[dependencies.mongodb]
2022-02-16 19:01:35 +00:00
version = "2"
default-features = false
features = ["tokio-runtime"]
optional = true
[dependencies.diesel-async]
2023-11-07 18:29:47 +00:00
version = "0.4.1"
default-features = false
optional = true
[dependencies.diesel]
version = "2.1"
default-features = false
optional = true
[dependencies.sqlx]
2023-08-22 21:19:37 +00:00
version = "0.7"
default-features = false
features = ["runtime-tokio-rustls"]
optional = true
[dev-dependencies.rocket]
path = "../../../core/lib"
default-features = false
features = ["json"]
[build-dependencies]
version_check = "0.9"