fix: proper deps for features

This commit is contained in:
əlemi 2024-02-07 01:18:24 +01:00
parent 2fabec6e2e
commit 42ae4c0152

View file

@ -12,6 +12,7 @@ tracing = "0.1"
# woot
codemp-woot = { git = "ssh://git@github.com/codewithotherpeopleandchangenamelater/woot.git", features = ["serde"], tag = "v0.1.1", optional = true }
# proto
uuid = { version = "1.3.1", features = ["v4"], optional = true }
tonic = { version = "0.9", features = ["tls", "tls-roots"], optional = true }
prost = { version = "0.11.8", optional = true }
# api
@ -20,7 +21,6 @@ tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "sync", "ful
async-trait = { version = "0.1", optional = true }
# client
md5 = { version = "0.7.0", optional = true }
uuid = { version = "1.3.1", features = ["v4"], optional = true }
serde_json = { version = "1", optional = true }
tokio-stream = { version = "0.1", optional = true }
# global
@ -36,7 +36,7 @@ tonic-build = "0.9"
default = ["client"]
api = ["woot", "dep:similar", "dep:tokio", "dep:async-trait"]
woot = ["dep:codemp-woot"]
transport = ["dep:prost", "dep:tonic"]
transport = ["dep:prost", "dep:tonic", "dep:uuid"]
client = ["transport", "api", "dep:tokio", "dep:tokio-stream", "dep:uuid", "dep:md5", "dep:serde_json"]
server = ["transport"]
global = ["client", "dep:lazy_static"]