diff --git a/Cargo.toml b/Cargo.toml index 48e60c2..0804512 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,4 +68,4 @@ num = "0.4" protocol = [] [workspace] -members = ["packet-inspector", "valence_nbt"] +members = ["valence_nbt", "packet_inspector"] diff --git a/packet-inspector/Cargo.toml b/packet_inspector/Cargo.toml similarity index 92% rename from packet-inspector/Cargo.toml rename to packet_inspector/Cargo.toml index e641387..5f2bdc7 100644 --- a/packet-inspector/Cargo.toml +++ b/packet_inspector/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "packet-inspector" +name = "packet_inspector" version = "0.1.0" edition = "2021" description = "A simple Minecraft proxy for inspecting packets." diff --git a/packet-inspector/src/main.rs b/packet_inspector/src/main.rs similarity index 99% rename from packet-inspector/src/main.rs rename to packet_inspector/src/main.rs index b8bbfc6..1a0e19a 100644 --- a/packet-inspector/src/main.rs +++ b/packet_inspector/src/main.rs @@ -46,9 +46,9 @@ impl Cli { fn print(&self, d: &impl fmt::Debug) { if self.timestamp { let now: DateTime = Utc::now(); - println!("{now} {d:?}"); + println!("{now} {d:#?}"); } else { - println!("{d:?}"); + println!("{d:#?}"); } } diff --git a/src/lib.rs b/src/lib.rs index dbe74eb..35cfd08 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -138,7 +138,7 @@ pub mod ident; pub mod player_list; pub mod player_textures; #[allow(dead_code)] -mod protocol; +pub mod protocol; pub mod server; mod slab; mod slab_rc;