aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-02-24 17:18:09 +0100
committerJokler <jokler.contact@gmail.com>2018-02-24 17:18:09 +0100
commitdb0f14a163a087261db7360a90d6ac70fb92e884 (patch)
tree4963b1342bba7e0b2123fa33b7a683141ab43a25 /Cargo.toml
parent288eadd3c42352deba28cfe062e79e673cb5d577 (diff)
downloadfrippy-db0f14a163a087261db7360a90d6ac70fb92e884.tar.gz
frippy-db0f14a163a087261db7360a90d6ac70fb92e884.zip
Use r2d2 as a ConnectionPool for diesel
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml17
1 files changed, 16 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index bc49f61..7b7c6f3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,14 @@ name = "frippy"
doc = false
[features]
-mysql = ["diesel", "diesel_infer_schema", "diesel_migrations", "dotenv"]
+mysql = [
+ "diesel",
+ "diesel_infer_schema",
+ "diesel_migrations",
+ "dotenv",
+ "r2d2",
+ "r2d2-diesel"
+]
[dependencies]
irc = "0.13.4"
@@ -52,6 +59,14 @@ version = "1.1.0"
optional = true
features = ["mysql"]
+[dependencies.r2d2]
+version = "0.8.2"
+optional = true
+
+[dependencies.r2d2-diesel]
+version = "1.0.0"
+optional = true
+
[dependencies.dotenv]
version = "0.11.0"
optional = true