rust-mc-status 3.0.0

High-performance asynchronous Rust library for querying Minecraft server status (Java & Bedrock)
Documentation
//! Typed status wrappers and the [`StatusExt`] trait.
//!
//! Each wrapper holds a [`ServerStatus`](crate::ServerStatus) and exposes
//! edition-specific accessors without requiring callers to match on
//! [`ServerData`](crate::ServerData).
//!
//! | Type | Edition | Constructor |
//! |------|---------|-------------|
//! | [`JavaServerStatus`] | Java (1.7+) | `client.java(...).await` |
//! | [`BedrockServerStatus`] | Bedrock | `client.bedrock(...).await` |
//!
//! Both types implement [`StatusExt`] for common fields (latency, IP, port,
//! player count) and [`serde::Serialize`] via `#[serde(transparent)]` so they
//! serialise identically to the underlying `ServerStatus`.
//!
//! Text formatting helpers ([`strip_formatting`], [`truncate_str`]) are
//! re-exported here from [`core::fmt`](crate::core::fmt).

pub mod ext;
pub mod java;
pub mod bedrock;

pub use ext::{StatusExt, strip_formatting, truncate_str};
pub use java::JavaServerStatus;
pub use bedrock::BedrockServerStatus;