deepslate-protocol 0.1.0

Minecraft protocol primitives for the Deepslate proxy.
Documentation
//! Minecraft protocol primitives for the Deepslate proxy.
//!
//! This crate provides zero-copy packet encoding/decoding, `VarInt` utilities,
//! and type definitions for the Minecraft protocol. It is intentionally
//! I/O-free and async-free, operating only on byte slices and buffers.

pub mod codec;
pub mod packet;
pub mod types;
pub mod varint;
pub mod version;

/// Protocol state for a Minecraft connection.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum State {
    /// Initial state: only Handshake packet is valid.
    Handshake,
    /// Server list ping.
    Status,
    /// Authentication and login.
    Login,
    /// Configuration phase (1.20.2+).
    Config,
    /// Gameplay packets.
    Play,
}