mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-24 23:11:29 +11:00
f0027aa097
<!-- Please make sure that your PR is aligned with the guidelines in CONTRIBUTING.md to the best of your ability. --> <!-- Good PRs have tests! Make sure you have sufficient test coverage. --> ## Description <!-- Describe the changes you've made. You may include any justification you want here. --> I've used the popular `owo-colors` library to colourise the output of the `packet_inspector`. This makes it a lot easier to see who's sending what for debugging purposes. In future, I'd like to be able to filter out common, low-information packets like `SetPlayerPosition` and `KeepAlive` as well, but that's not in this PR. ![image](https://user-images.githubusercontent.com/28905212/218880818-69c0461c-bd23-45c4-9fd4-7c5868be4b67.png) ## Test Plan No tests - just eyeball 😄.
15 lines
431 B
TOML
15 lines
431 B
TOML
[package]
|
|
name = "packet_inspector"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "A simple Minecraft proxy for inspecting packets."
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
clap = { version = "4.0.30", features = ["derive"] }
|
|
owo-colors = "3.5.0"
|
|
regex = "1.6.0"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tracing-subscriber = "0.3.16"
|
|
valence_protocol = { path = "../valence_protocol", version = "0.1.0", features = ["compression"] }
|