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>"]
|
2022-01-26 14:46:40 +00:00
|
|
|
edition = "2021"
|
2019-12-20 13:56:01 +00:00
|
|
|
|
|
|
|
# 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"]
|
2021-04-09 11:17:38 +00:00
|
|
|
quic = ["quinn"]
|
2020-07-14 23:34:41 +00:00
|
|
|
|
2021-04-11 21:37:48 +00:00
|
|
|
default = ["metrics","compression","quic"]
|
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
|
2023-05-10 08:33:01 +00:00
|
|
|
bincode = { workspace = true }
|
|
|
|
serde = { workspace = true }
|
2022-01-29 18:50:32 +00:00
|
|
|
#ipv4/ipv6 behavior
|
2023-05-04 08:44:07 +00:00
|
|
|
socket2 = "0.5.2"
|
2020-03-04 15:52:30 +00:00
|
|
|
#sending
|
2023-05-10 08:33:01 +00:00
|
|
|
crossbeam-channel = { workspace = true }
|
|
|
|
tokio = { workspace = true, features = ["io-util", "macros", "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
|
2023-05-10 08:33:01 +00:00
|
|
|
tracing = { workspace = true }
|
|
|
|
prometheus = { workspace = true, optional = true }
|
2020-03-04 15:52:30 +00:00
|
|
|
#async
|
2023-05-10 08:33:01 +00:00
|
|
|
futures-util = { workspace = true, features = ["std"] }
|
2024-02-06 17:49:48 +00:00
|
|
|
async-channel = "2.1" #use for .close() channels
|
2020-03-10 00:07:36 +00:00
|
|
|
#mpsc channel registry
|
2023-05-10 08:33:01 +00:00
|
|
|
lazy_static = { workspace = true }
|
|
|
|
rand = { workspace = true }
|
2021-04-09 11:17:38 +00:00
|
|
|
#quic support
|
2023-08-23 04:35:36 +00:00
|
|
|
quinn = { version = "0.10", optional = true }
|
|
|
|
rustls = "0.21"
|
2024-02-10 10:30:36 +00:00
|
|
|
lz-fear = { version = "0.2", optional = 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"
|
2021-05-04 13:27:30 +00:00
|
|
|
# faster HashMaps
|
2023-05-10 08:33:01 +00:00
|
|
|
hashbrown = { workspace = true }
|
2020-02-25 18:30:50 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-01-26 21:08:38 +00:00
|
|
|
tracing-subscriber = { version = "0.3.7", default-features = false, features = ["env-filter", "fmt", "time", "ansi", "smallvec"] }
|
2023-05-10 08:33:01 +00:00
|
|
|
tokio = { workspace = true, default-features = false, features = ["io-std", "fs", "rt-multi-thread"] }
|
|
|
|
futures-util = { workspace = true, default-features = false, features = ["sink", "std"] }
|
|
|
|
clap = { workspace = true }
|
2023-05-04 08:44:07 +00:00
|
|
|
shellexpand = "3.1.0"
|
2021-01-20 14:53:58 +00:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2023-05-10 08:33:01 +00:00
|
|
|
prometheus-hyper = { workspace = true }
|
2023-08-27 16:13:32 +00:00
|
|
|
criterion = { version = "0.5.1", default-features=false, features=["rayon", "cargo_bench_support", "async_tokio"]}
|
2021-04-15 08:16:42 +00:00
|
|
|
#quic
|
2023-08-27 16:04:20 +00:00
|
|
|
rcgen = { version = "0.11"}
|
2021-02-14 17:45:12 +00:00
|
|
|
|
|
|
|
[[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"
|