Rocket/contrib/sync_db_pools/lib/Cargo.toml

59 lines
1.6 KiB
TOML
Raw Normal View History

[package]
name = "rocket_sync_db_pools"
2023-11-03 23:26:07 +00:00
version = "0.1.0"
authors = ["Sergio Benitez <sb@sergio.bz>"]
description = "Rocket async database pooling support for sync database drivers."
repository = "https://github.com/rwf2/Rocket/tree/master/contrib/sync_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.75"
[lints]
workspace = true
[features]
diesel_sqlite_pool = ["diesel/sqlite", "diesel/r2d2"]
diesel_postgres_pool = ["diesel/postgres", "diesel/r2d2"]
diesel_mysql_pool = ["diesel/mysql", "diesel/r2d2"]
sqlite_pool = ["rusqlite", "r2d2_sqlite"]
postgres_pool = ["postgres", "r2d2_postgres"]
memcache_pool = ["memcache"]
[dependencies]
r2d2 = "0.8"
2021-05-29 21:40:50 +00:00
tokio = { version = "1.6.1", features = ["rt", "rt-multi-thread"] }
serde = { version = "1.0", features = ["derive"] }
diesel = { version = "2.0.0", default-features = false, optional = true }
postgres = { version = "0.19", optional = true }
r2d2_postgres = { version = "0.18", optional = true }
rusqlite = { version = "0.31.0", optional = true }
r2d2_sqlite = { version = "0.24.0", optional = true }
memcache = { version = "0.17.2", optional = true }
[dependencies.rocket_sync_db_pools_codegen]
2023-11-03 23:26:07 +00:00
version = "0.1.0"
path = "../codegen"
[dependencies.rocket]
2023-11-18 10:30:50 +00:00
version = "0.6.0-dev"
path = "../../../core/lib"
default-features = false
[build-dependencies]
version_check = "0.9.1"
[dev-dependencies.rocket]
version = "0.6.0-dev"
path = "../../../core/lib"
default-features = false
features = ["trace"]
[package.metadata.docs.rs]
all-features = true