From 8e67bf23415b8a823dc250b64c9c8b930bc8b64e Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 13 Mar 2026 16:52:41 -1100 Subject: drop unnecessary dependency on pastey --- azalea-client/Cargo.toml | 1 - azalea-client/src/plugins/packet/mod.rs | 20 +------------------- 2 files changed, 1 insertion(+), 20 deletions(-) (limited to 'azalea-client') diff --git a/azalea-client/Cargo.toml b/azalea-client/Cargo.toml index b6ed7f12..d260eca0 100644 --- a/azalea-client/Cargo.toml +++ b/azalea-client/Cargo.toml @@ -30,7 +30,6 @@ derive_more = { workspace = true, features = ["deref", "deref_mut"] } indexmap.workspace = true minecraft_folder_path.workspace = true parking_lot.workspace = true -pastey.workspace = true regex.workspace = true reqwest = { workspace = true, optional = true, features = ["socks"] } simdnbt.workspace = true diff --git a/azalea-client/src/plugins/packet/mod.rs b/azalea-client/src/plugins/packet/mod.rs index 4309850e..e758ae5f 100644 --- a/azalea-client/src/plugins/packet/mod.rs +++ b/azalea-client/src/plugins/packet/mod.rs @@ -55,25 +55,7 @@ impl Plugin for PacketPlugin { } } -#[doc(hidden)] -macro_rules! __declare_packet_handlers { - ( - $packetenum:ident, - $packetvar:expr, - $handler:ident, - [$($packet:path),+ $(,)?] - ) => { - pastey::paste! { - match $packetvar { - $( - $packetenum::[< $packet:camel >](p) => $handler.$packet(p), - )+ - } - } - }; -} - -pub(crate) use __declare_packet_handlers as declare_packet_handlers; +pub(crate) use azalea_protocol::azalea_protocol_macros::declare_packet_handlers; #[derive(Resource)] struct CachedSystemState(SystemState); -- cgit v1.2.3