veloren/network/Cargo.toml

78 lines
2.3 KiB
TOML
Raw Normal View History

[package]
name = "veloren-network"
version = "0.3.0"
authors = ["Marcel Märtens <marcel.cochem@googlemail.com>"]
2022-01-26 14:46:40 +00:00
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
metrics = ["prometheus", "network-protocol/metrics"]
compression = ["lz-fear"]
quic = ["quinn"]
2021-04-11 21:37:48 +00:00
default = ["metrics","compression","quic"]
[dependencies]
network-protocol = { package = "veloren-network-protocol", path = "protocol" }
2020-03-04 15:52:30 +00:00
#serialisation
2021-05-28 00:56:16 +00:00
bincode = "1.3.2"
serde = { version = "1.0" }
#ipv4/ipv6 behavior
2023-05-04 08:44:07 +00:00
socket2 = "0.5.2"
2020-03-04 15:52:30 +00:00
#sending
crossbeam-channel = "0.5"
2023-05-06 03:45:49 +00:00
tokio = { version = "1.20", default-features = false, features = ["io-util", "macros", "rt", "net", "time"] }
tokio-stream = { version = "0.1.2", default-features = false }
2020-03-04 15:52:30 +00:00
#tracing and metrics
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
futures-core = { version = "0.3", default-features = false }
futures-util = { version = "0.3.7", default-features = false, features = ["std"] }
async-channel = "1.5.1" #use for .close() channels
#mpsc channel registry
lazy_static = { version = "1.4", default-features = false }
2021-01-26 20:23:18 +00:00
rand = { version = "0.8" }
#quic support
quinn = { version = "0.8", optional = true }
2021-11-19 14:40:59 +00:00
rustls = "0.20.1"
#stream flags
2023-05-04 20:56:40 +00:00
bitflags = "2.2.1"
lz-fear = { version = "0.1.1", optional = true }
# async traits
async-trait = "0.1.42"
bytes = "^1"
# faster HashMaps
hashbrown = { version = "0.13" }
[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-06 03:45:49 +00:00
tokio = { version = "1.20", default-features = false, features = ["io-std", "fs", "rt-multi-thread"] }
futures-util = { version = "0.3.7", default-features = false, features = ["sink", "std"] }
2023-05-04 20:56:40 +00:00
clap = { version = "4.2", default-features = false, features = ["std", "color", "suggestions"] }
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"] }
prometheus-hyper = "0.1.2"
criterion = { version = "0.3.4", features = ["default", "async_tokio"] }
#quic
2023-05-04 08:44:07 +00:00
rcgen = { version = "0.10"}
[[bench]]
name = "speed"
harness = false
[[example]]
name = "fileshare"
[[example]]
name = "network-speed"
[[example]]
name = "chat"
[[example]]
name = "tcp_loadtest"