aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml5
1 files changed, 3 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4beb2d1..2e31c2c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
[features]
default = ["db", "games"]
-db = ["diesel", "postgres", "r2d2_postgres"]
+db = ["diesel", "postgres", "r2d2_postgres", "diesel_migrations"]
games = []
[dependencies]
@@ -20,7 +20,7 @@ dotenv = "^0.13"
chrono = "^0.4"
time = "^0.1"
fern = { version = "^0.5", features = ["colored"] }
-diesel = { version = "~1.4", features = ["postgres", "chrono", "r2d2"], optional = true }
+diesel = { version = "2.0", features = ["postgres", "chrono", "r2d2"], optional = true }
ctrlc = { version = "~3.1", features = ["termination"] }
rand = "^0.6"
either = "~1.5"
@@ -37,6 +37,7 @@ pest = "~2.1"
pest_derive = "~2.1"
postgres = { version = "^0.19", optional = true, features = ["with-chrono-0_4"] }
r2d2_postgres = { version = "^0.18", optional = true }
+diesel_migrations = { version = "2.0", optional = true }
envconfig = "^0.8"
envconfig_derive = "^0.8"