mirror of
https://github.com/italicsjenga/valence.git
synced 2025-01-10 06:41:30 +11:00
4226201fed
The `tracing` crate seems to be the go-to logging/profiling/instrumentation solution nowadays. Perhaps in the future we could use `tracing` for profiling instead of (or in addition to) the `perf`-based `cargo flamegraph` command. This would sidestep the issue of `rayon` polluting the output. I conducted an initial experiment by adding some more spans but wasn't very happy with the result. Log messages have also been improved. There is some additional context and events are raised when clients are added/removed from the server.
82 lines
1.8 KiB
TOML
82 lines
1.8 KiB
TOML
[package]
|
|
name = "valence"
|
|
version = "0.1.0+mc1.19.2"
|
|
edition = "2021"
|
|
description = "A framework for building Minecraft servers in Rust."
|
|
repository = "https://github.com/rj00a/valence"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
keywords = ["minecraft", "gamedev", "server"]
|
|
categories = ["game-engines"]
|
|
build = "build/main.rs"
|
|
authors = ["Ryan Johnson <ryanj00a@gmail.com>"]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.65"
|
|
approx = "0.5.1"
|
|
arrayvec = "0.7.2"
|
|
async-trait = "0.1.57"
|
|
base64 = "0.13.0"
|
|
bitfield-struct = "0.1.7"
|
|
bytes = "1.2.1"
|
|
flume = "0.10.14"
|
|
futures = "0.3.24"
|
|
hmac = "0.12.1"
|
|
num = "0.4.0"
|
|
paste = "1.0.9"
|
|
rand = "0.8.5"
|
|
rayon = "1.5.3"
|
|
rsa = "0.6.1"
|
|
rsa-der = "0.3.0"
|
|
serde = { version = "1.0.145", features = ["derive"] }
|
|
serde_json = "1.0.85"
|
|
sha1 = "0.10.5"
|
|
sha2 = "0.10.6"
|
|
thiserror = "1.0.35"
|
|
tracing = "0.1.37"
|
|
url = { version = "2.2.2", features = ["serde"] }
|
|
uuid = { version = "1.1.2", features = ["serde"] }
|
|
valence_nbt = { version = "0.4.0", path = "valence_nbt" }
|
|
valence_protocol = { version = "0.1.0", path = "valence_protocol", features = ["encryption", "compression"] }
|
|
vek = "0.15.8"
|
|
|
|
[dependencies.tokio]
|
|
version = "1.21.1"
|
|
features = ["macros", "rt-multi-thread", "net", "io-util", "sync", "time"]
|
|
|
|
[dependencies.reqwest]
|
|
version = "0.11.12"
|
|
default-features = false
|
|
# Avoid OpenSSL dependency on Linux.
|
|
features = ["rustls-tls", "json"]
|
|
|
|
[dev-dependencies]
|
|
tracing-subscriber = "0.3.16"
|
|
noise = "0.7.0"
|
|
|
|
[build-dependencies]
|
|
anyhow = "1.0.65"
|
|
heck = "0.4.0"
|
|
proc-macro2 = "1.0.43"
|
|
quote = "1.0.21"
|
|
serde = { version = "1.0.145", features = ["derive"] }
|
|
serde_json = "1.0.85"
|
|
rayon = "1.5.3"
|
|
num = "0.4.0"
|
|
|
|
[workspace]
|
|
members = [
|
|
"valence_derive",
|
|
"valence_nbt",
|
|
"valence_protocol",
|
|
"packet_inspector",
|
|
"performance_tests/players"
|
|
]
|
|
exclude = ["performance_tests/rust-mc-bot"]
|
|
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
[profile.dev]
|
|
opt-level = 1
|