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
|
2021-05-28 00:56:16 +00:00
|
|
|
bincode = "1.3.2"
|
2020-04-24 10:56:04 +00:00
|
|
|
serde = { version = "1.0" }
|
2022-01-29 18:50:32 +00:00
|
|
|
#ipv4/ipv6 behavior
|
|
|
|
socket2 = "0.4.4"
|
2020-03-04 15:52:30 +00:00
|
|
|
#sending
|
2020-12-15 23:51:07 +00:00
|
|
|
crossbeam-channel = "0.5"
|
2021-11-19 14:40:59 +00:00
|
|
|
tokio = { version = "1.14", 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"]}
|
2022-04-02 13:44:07 +00:00
|
|
|
prometheus = { version = "0.13", 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" }
|
2021-04-09 11:17:38 +00:00
|
|
|
#quic support
|
2021-11-19 13:01:08 +00:00
|
|
|
quinn = { version = "0.8", optional = true }
|
2021-11-19 14:40:59 +00:00
|
|
|
rustls = "0.20.1"
|
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"
|
2021-05-04 13:27:30 +00:00
|
|
|
# faster HashMaps
|
2022-04-02 13:44:07 +00:00
|
|
|
hashbrown = { version = ">=0.9, <0.13" }
|
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"] }
|
2021-11-19 14:40:59 +00:00
|
|
|
tokio = { version = "1.14", 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"] }
|
2022-04-02 21:29:22 +00:00
|
|
|
clap = { version = "3.1.8", default-features = false, features = ["std", "color", "suggestions"] }
|
2020-08-26 08:07:22 +00:00
|
|
|
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"] }
|
2021-04-15 08:16:42 +00:00
|
|
|
#quic
|
2022-04-02 13:44:07 +00:00
|
|
|
rcgen = { version = "0.9"}
|
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"
|