mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
chore: cleanup dependencies and features
This commit is contained in:
parent
c9a36ea8ec
commit
45c1106d98
1 changed files with 8 additions and 12 deletions
20
Cargo.toml
20
Cargo.toml
|
@ -17,27 +17,23 @@ tonic = { version = "0.9", features = ["tls", "tls-roots"], optional = true }
|
||||||
prost = { version = "0.11.8", optional = true }
|
prost = { version = "0.11.8", optional = true }
|
||||||
# api
|
# api
|
||||||
similar = { version = "2.2", features = ["inline"], optional = true }
|
similar = { version = "2.2", features = ["inline"], optional = true }
|
||||||
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "sync", "full"], optional = true }
|
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "sync"], optional = true }
|
||||||
async-trait = { version = "0.1", optional = true }
|
async-trait = { version = "0.1", optional = true }
|
||||||
# client
|
# client
|
||||||
md5 = { version = "0.7.0", optional = true }
|
md5 = { version = "0.7.0", optional = true }
|
||||||
serde_json = { version = "1", optional = true }
|
serde_json = { version = "1", optional = true }
|
||||||
tokio-stream = { version = "0.1", optional = true }
|
tokio-stream = { version = "0.1", optional = true }
|
||||||
# global
|
|
||||||
lazy_static = { version = "1.4", optional = true }
|
|
||||||
serde = { version = "1.0.193", features = ["derive"] }
|
serde = { version = "1.0.193", features = ["derive"] }
|
||||||
postcard = "1.0.8"
|
dashmap = { version = "5.5.3", optional = true }
|
||||||
dashmap = "5.5.3"
|
postcard = { version = "1.0.8", optional = true }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tonic-build = "0.9"
|
tonic-build = "0.9"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["client"]
|
default = []
|
||||||
api = ["woot", "dep:similar", "dep:tokio", "dep:async-trait"]
|
api = ["woot", "dep:tokio", "dep:async-trait"]
|
||||||
woot = ["dep:codemp-woot"]
|
woot = ["dep:codemp-woot", "dep:similar"]
|
||||||
transport = ["dep:prost", "dep:tonic", "dep:uuid"]
|
transport = ["dep:prost", "dep:tonic", "dep:uuid"]
|
||||||
client = ["transport", "api", "dep:tokio", "dep:tokio-stream", "dep:uuid", "dep:md5", "dep:serde_json"]
|
client = ["transport", "api", "dep:tokio", "dep:tokio-stream", "dep:uuid", "dep:md5", "dep:serde_json", "dep:dashmap", "dep:postcard"]
|
||||||
server = ["transport"]
|
server = ["transport", "woot"]
|
||||||
global = ["client", "dep:lazy_static"]
|
|
||||||
sync = ["client"]
|
|
||||||
|
|
Loading…
Reference in a new issue