2021-01-22 16:09:20 +00:00
|
|
|
[package]
|
|
|
|
name = "veloren-network-protocol"
|
|
|
|
description = "pure Protocol without any I/O itself"
|
2021-02-21 23:48:30 +00:00
|
|
|
version = "0.6.0"
|
2021-01-22 16:09:20 +00:00
|
|
|
authors = ["Marcel Märtens <marcel.cochem@googlemail.com>"]
|
2022-01-26 14:46:40 +00:00
|
|
|
edition = "2021"
|
2021-01-22 16:09:20 +00:00
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[features]
|
|
|
|
metrics = ["prometheus"]
|
2021-02-10 10:37:42 +00:00
|
|
|
trace_pedantic = [] # use for debug only
|
2021-01-22 16:09:20 +00:00
|
|
|
|
|
|
|
default = ["metrics"]
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
|
|
|
#tracing and metrics
|
|
|
|
tracing = { version = "0.1", default-features = false }
|
2021-03-09 19:12:57 +00:00
|
|
|
prometheus = { version = "0.12", default-features = false, optional = true }
|
2021-01-22 16:09:20 +00:00
|
|
|
#stream flags
|
|
|
|
bitflags = "1.2.1"
|
|
|
|
rand = { version = "0.8" }
|
|
|
|
# async traits
|
|
|
|
async-trait = "0.1.42"
|
2021-02-10 10:37:42 +00:00
|
|
|
bytes = "^1"
|
2021-04-29 17:12:57 +00:00
|
|
|
hashbrown = { version = ">=0.9, <0.12" }
|
2021-01-22 16:09:20 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
async-channel = "1.5.1"
|
2021-11-19 13:01:08 +00:00
|
|
|
tokio = { version = "1.14", default-features = false, features = ["rt", "macros"] }
|
2021-01-22 16:09:20 +00:00
|
|
|
criterion = { version = "0.3.4", features = ["default", "async_tokio"] }
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "protocols"
|
2022-01-26 14:46:40 +00:00
|
|
|
harness = false
|