summaryrefslogtreecommitdiff
path: root/protocol/Cargo.toml
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-12-31 13:43:20 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-12-31 13:43:20 -0500
commit1e3014a777805d3dcb691ee6ebe59c62f58f8222 (patch)
tree938d14db72c52dd96f5345fb084fd603c9dcebeb /protocol/Cargo.toml
parent88366acba07b678466b42829887dcdda4f583686 (diff)
Remove sqlx dependency from webapp crate
Diffstat (limited to 'protocol/Cargo.toml')
-rw-r--r--protocol/Cargo.toml4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocol/Cargo.toml b/protocol/Cargo.toml
index dc1510d..20de18b 100644
--- a/protocol/Cargo.toml
+++ b/protocol/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+[features]
+db = ["dep:sqlx"]
[dependencies]
serde = { version = "1.0.145", features = ["derive"] }
@@ -17,7 +19,7 @@ log = "0.4"
regex = "1.0"
lazy_static = "1.4"
async-trait = "0.1.58"
-sqlx = { version = "0.6", features = ["runtime-tokio-native-tls", "postgres", "uuid", "chrono", "json", "offline"] }
+sqlx = { version = "0.6", features = ["runtime-tokio-native-tls", "postgres", "uuid", "chrono", "json", "offline"] , optional = true }
[dev-dependencies]
env_logger = "0.10.0"