feat: barrel and sqlformat setup

This commit is contained in:
2023-10-27 13:10:59 +02:00
parent 30a40c4831
commit e200273f20
3 changed files with 57 additions and 3 deletions
+5 -3
View File
@@ -5,14 +5,16 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[featues]
[features]
# https://github.com/rust-db/barrel/blob/master/guides/diesel-setup.md
use_barrel = []
use_barrel = ["barrel", "sqlformat"]
default = ["use_barrel"]
[dependencies]
sqlformat = { version = "0.2.2", optional = true }
anyhow = "1.0.75"
axum = "0.6.20"
barrel = { version = "0.7.0", optional = true }
barrel = { version = "0.7.0", optional = true, features = ["pg"] }
diesel = { version = "2.1.3", features = ["serde_json", "postgres"] }
dotenvy = "0.15.7"
mime_guess = "2.0.4"