Introduce features to choose between SQlite or Postgres
This commit is contained in:
@@ -23,7 +23,7 @@ features = ["serde"]
|
||||
version = "0.4"
|
||||
|
||||
[dependencies.diesel]
|
||||
features = ["postgres", "sqlite", "r2d2", "chrono"]
|
||||
features = ["r2d2", "chrono"]
|
||||
version = "1.3.2"
|
||||
|
||||
[dependencies.plume-api]
|
||||
@@ -35,3 +35,8 @@ path = "../plume-common"
|
||||
[dependencies.rocket]
|
||||
git = "https://github.com/SergioBenitez/Rocket"
|
||||
rev = "55459db7732b9a240826a5c120c650f87e3372ce"
|
||||
|
||||
[features]
|
||||
default = ["postgres"]
|
||||
postgres = ["diesel/postgres"]
|
||||
sqlite = ["diesel/sqlite"]
|
||||
|
||||
Reference in New Issue
Block a user