chore: move to crates folder

This commit is contained in:
Alexander Medvedev committed 2026-08-06 12:56:40 +02:00
1 parent 5d10c0d8a8
commit cb3660bcd2
3393 files changed
+1270 -741

No files matched your search

@@ -0,0 +1,21 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
use pumpkin_protocol::query::{RawQueryPacket, SHandshake, SStatusRequest};
use tokio::runtime::Runtime;
fuzz_target!(|data: &[u8]| {
let rt = Runtime::new().unwrap();
rt.block_on(async {
if let Ok(mut raw) = RawQueryPacket::decode(data.to_vec()).await {
match raw.packet_type {
pumpkin_protocol::query::PacketType::Handshake => {
let _ = SHandshake::decode(&mut raw).await;
}
pumpkin_protocol::query::PacketType::Status => {
let _ = SStatusRequest::decode(&mut raw).await;
}
}
}
});
});