diff options
| author | rtkay123 <dev@kanjala.com> | 2026-02-09 17:54:46 +0200 |
|---|---|---|
| committer | rtkay123 <dev@kanjala.com> | 2026-02-09 17:54:46 +0200 |
| commit | a9630ecdc459068ca51ee2d7be3837d609840842 (patch) | |
| tree | 3bf6d1da4aefbaa351a36a0c63228bcdcf6b4917 /lib/shared-svc/Cargo.toml | |
| parent | d2339ca8869af12c0fd8cf6fc87986f06b487de9 (diff) | |
| download | sellershut-a9630ecdc459068ca51ee2d7be3837d609840842.tar.bz2 sellershut-a9630ecdc459068ca51ee2d7be3837d609840842.zip | |
feat: connect to database
Diffstat (limited to 'lib/shared-svc/Cargo.toml')
| -rw-r--r-- | lib/shared-svc/Cargo.toml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/shared-svc/Cargo.toml b/lib/shared-svc/Cargo.toml index d95d3ef..85a1c82 100644 --- a/lib/shared-svc/Cargo.toml +++ b/lib/shared-svc/Cargo.toml @@ -11,18 +11,20 @@ bb8-redis = { version = "0.26.0", optional = true } log = "0.4.29" redis = { version = "1.0.3", optional = true } secrecy.workspace = true +sqlx = { workspace = true, optional = true } thiserror.workspace = true tokio = { workspace = true, optional = true } tracing.workspace = true url.workspace = true [features] -default = [] +default = ["cache", "database"] cache = [ - "bb8-redis", + "dep:bb8-redis", "redis/cluster-async", "redis/connection-manager", "redis/sentinel", "redis/tokio-comp", "tokio/sync" ] +database = ["dep:sqlx"] |
