2019-12-20 13:56:01 +00:00
|
|
|
[package]
|
2021-01-22 16:09:20 +00:00
|
|
|
name = "veloren-network"
|
2021-01-13 13:16:22 +00:00
|
|
|
version = "0.3.0"
|
2019-12-20 13:56:01 +00:00
|
|
|
authors = ["Marcel Märtens <marcel.cochem@googlemail.com>"]
|
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
2020-07-14 23:34:41 +00:00
|
|
|
[features]
|
2021-01-22 16:09:20 +00:00
|
|
|
metrics = ["prometheus", "network-protocol/metrics"]
|
2020-08-25 13:32:42 +00:00
|
|
|
compression = ["lz-fear"]
|
2020-07-14 23:34:41 +00:00
|
|
|
|
2020-08-25 13:32:42 +00:00
|
|
|
default = ["metrics","compression"]
|
2020-07-14 23:34:41 +00:00
|
|
|
|
2019-12-20 13:56:01 +00:00
|
|
|
[dependencies]
|
|
|
|
|
2021-02-10 10:37:42 +00:00
|
|
|
network-protocol = { package = "veloren-network-protocol", path = "protocol" }
|
2021-01-22 16:09:20 +00:00
|
|
|
|
2020-03-04 15:52:30 +00:00
|
|
|
#serialisation
|
2021-01-20 14:53:58 +00:00
|
|
|
bincode = "1.3.1"
|
2020-04-24 10:56:04 +00:00
|
|
|
serde = { version = "1.0" }
|
2020-03-04 15:52:30 +00:00
|
|
|
#sending
|
2020-12-15 23:51:07 +00:00
|
|
|
crossbeam-channel = "0.5"
|
2021-01-13 13:16:22 +00:00
|
|
|
tokio = { version = "1.2", default-features = false, features = ["io-util", "macros", "rt", "net", "time"] }
|
2021-01-15 13:04:32 +00:00
|
|
|
tokio-stream = { version = "0.1.2", default-features = false }
|
2020-03-04 15:52:30 +00:00
|
|
|
#tracing and metrics
|
2021-02-10 10:37:42 +00:00
|
|
|
tracing = { version = "0.1", default-features = false, features = ["attributes"]}
|
2021-03-09 19:12:57 +00:00
|
|
|
prometheus = { version = "0.12", default-features = false, optional = true }
|
2020-03-04 15:52:30 +00:00
|
|
|
#async
|
2021-01-15 13:04:32 +00:00
|
|
|
futures-core = { version = "0.3", default-features = false }
|
2021-02-18 00:01:57 +00:00
|
|
|
futures-util = { version = "0.3.7", default-features = false, features = ["std"] }
|
2021-01-15 13:04:32 +00:00
|
|
|
async-channel = "1.5.1" #use for .close() channels
|
2020-03-10 00:07:36 +00:00
|
|
|
#mpsc channel registry
|
2020-04-24 10:56:04 +00:00
|
|
|
lazy_static = { version = "1.4", default-features = false }
|
2021-01-26 20:23:18 +00:00
|
|
|
rand = { version = "0.8" }
|
2020-08-25 13:32:42 +00:00
|
|
|
#stream flags
|
|
|
|
bitflags = "1.2.1"
|
|
|
|
lz-fear = { version = "0.1.1", optional = true }
|
2021-01-22 16:09:20 +00:00
|
|
|
# async traits
|
|
|
|
async-trait = "0.1.42"
|
2021-02-10 10:37:42 +00:00
|
|
|
bytes = "^1"
|
2020-02-25 18:30:50 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2020-06-08 09:47:39 +00:00
|
|
|
tracing-subscriber = { version = "0.2.3", default-features = false, features = ["env-filter", "fmt", "chrono", "ansi", "smallvec"] }
|
2021-02-10 10:37:42 +00:00
|
|
|
tokio = { version = "1.2", default-features = false, features = ["io-std", "fs", "rt-multi-thread"] }
|
2021-02-18 00:01:57 +00:00
|
|
|
futures-util = { version = "0.3.7", default-features = false, features = ["sink", "std"] }
|
2020-08-26 08:07:22 +00:00
|
|
|
clap = { version = "2.33", default-features = false }
|
|
|
|
shellexpand = "2.0.0"
|
2021-01-20 14:53:58 +00:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2021-03-09 19:12:57 +00:00
|
|
|
prometheus-hyper = "0.1.2"
|
2021-02-14 17:45:12 +00:00
|
|
|
criterion = { version = "0.3.4", features = ["default", "async_tokio"] }
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "speed"
|
|
|
|
harness = false
|
2021-02-10 10:37:42 +00:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "fileshare"
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "network-speed"
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "chat"
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "tcp_loadtest"
|