#minecraft #mc #serverlistping

async-minecraft-ping

An async Rust client for the Minecraft ServerListPing protocol

3 unstable releases

0.2.1 Apr 7, 2020
0.2.0 Apr 5, 2020
0.1.0 Apr 4, 2020

#322 in Asynchronous

MIT/Apache

18KB
390 lines

async-minecraft-ping

crates.io docs.rs crates.io

An async ServerListPing client implementation in Rust.

Usage

See the example.

let mut config = ConnectionConfig::build(args.address);
if let Some(port) = args.port {
    config = config.with_port(port);
}

let mut connection = config.connect().await?;

let status = connection.status().await?;

println!(
    "{} of {} player(s) online",
    status.players.online, status.players.max
);

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~3.5MB
~66K SLoC