2021-01-22 16:09:20 +00:00
|
|
|
[package]
|
|
|
|
name = "veloren-network-protocol"
|
|
|
|
description = "pure Protocol without any I/O itself"
|
2022-05-20 10:20:57 +00:00
|
|
|
version = "0.6.1"
|
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
|
2023-05-10 08:33:01 +00:00
|
|
|
tracing = { workspace = true }
|
|
|
|
prometheus = { workspace = true, optional = true }
|
2021-01-22 16:09:20 +00:00
|
|
|
#stream flags
|
2023-05-10 08:33:01 +00:00
|
|
|
bitflags = { workspace = true }
|
|
|
|
rand = { workspace = true }
|
2021-01-22 16:09:20 +00:00
|
|
|
# async traits
|
2024-02-10 09:35:04 +00:00
|
|
|
async-trait = { workspace = true }
|
2021-02-10 10:37:42 +00:00
|
|
|
bytes = "^1"
|
2023-05-10 08:33:01 +00:00
|
|
|
hashbrown = { workspace = true }
|
2021-01-22 16:09:20 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-02-06 17:49:48 +00:00
|
|
|
async-channel = "2.1"
|
2023-05-10 08:33:01 +00:00
|
|
|
tokio = { workspace = true, features = ["macros"] }
|
2023-08-27 16:13:32 +00:00
|
|
|
criterion = { version = "0.5.1", default-features=false, features=["rayon", "cargo_bench_support", "async_tokio"]}
|
2021-01-22 16:09:20 +00:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "protocols"
|
2022-01-26 14:46:40 +00:00
|
|
|
harness = false
|