mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
According to RUSTSEC-2023-0052 we need to upgrade rustls to 0.21 to get a fix for the issue which may or may not affect Veloren since it's about client certificates but with the absence of a PoC it seems like a good idea to upgrade anyway, just to be sure. webpki has gone unmaintained (which rustls 0.20 depends on), starting with rustls 0.21 it depends on rustls-webpki which contains a fix for the issue. Since quinn also depends on rustls 0.20 in 0.8 and 0.9 versions, we needed to upgrade it to 0.10 so that it depends on rustls 0.21 which we now use.
78 lines
2.1 KiB
TOML
78 lines
2.1 KiB
TOML
[package]
|
|
name = "veloren-network"
|
|
version = "0.3.0"
|
|
authors = ["Marcel Märtens <marcel.cochem@googlemail.com>"]
|
|
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"]
|
|
|
|
default = ["metrics","compression","quic"]
|
|
|
|
[dependencies]
|
|
|
|
network-protocol = { package = "veloren-network-protocol", path = "protocol" }
|
|
|
|
#serialisation
|
|
bincode = { workspace = true }
|
|
serde = { workspace = true }
|
|
#ipv4/ipv6 behavior
|
|
socket2 = "0.5.2"
|
|
#sending
|
|
crossbeam-channel = { workspace = true }
|
|
tokio = { workspace = true, features = ["io-util", "macros", "net", "time"] }
|
|
tokio-stream = { version = "0.1.2", default-features = false }
|
|
#tracing and metrics
|
|
tracing = { workspace = true }
|
|
prometheus = { workspace = true, optional = true }
|
|
#async
|
|
futures-core = { version = "0.3", default-features = false }
|
|
futures-util = { workspace = true, features = ["std"] }
|
|
async-channel = "1.6" #use for .close() channels
|
|
#mpsc channel registry
|
|
lazy_static = { workspace = true }
|
|
rand = { workspace = true }
|
|
#quic support
|
|
quinn = { version = "0.10", optional = true }
|
|
rustls = "0.21"
|
|
#stream flags
|
|
bitflags = { workspace = true }
|
|
lz-fear = { version = "0.1.1", optional = true }
|
|
# async traits
|
|
async-trait = "0.1.42"
|
|
bytes = "^1"
|
|
# faster HashMaps
|
|
hashbrown = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tracing-subscriber = { version = "0.3.7", default-features = false, features = ["env-filter", "fmt", "time", "ansi", "smallvec"] }
|
|
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 }
|
|
shellexpand = "3.1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
prometheus-hyper = { workspace = true }
|
|
criterion = { version = "0.3.4", features = ["default", "async_tokio"] }
|
|
#quic
|
|
rcgen = { version = "0.10"}
|
|
|
|
[[bench]]
|
|
name = "speed"
|
|
harness = false
|
|
|
|
[[example]]
|
|
name = "fileshare"
|
|
|
|
[[example]]
|
|
name = "network-speed"
|
|
|
|
[[example]]
|
|
name = "chat"
|
|
|
|
[[example]]
|
|
name = "tcp_loadtest"
|