#minecraft #mc #async-client #api-bindings #serverlistping

async-minecraft-ping

An async Rust client for the Minecraft ServerListPing protocol

7 releases (breaking)

0.8.0 Dec 28, 2021
0.6.0 Dec 28, 2021
0.4.0 Jun 3, 2021
0.3.0 Apr 22, 2021
0.1.0 Apr 4, 2020

#813 in Asynchronous

Download history 38/week @ 2024-07-29 31/week @ 2024-08-05 47/week @ 2024-08-12 26/week @ 2024-08-19 70/week @ 2024-08-26 40/week @ 2024-09-02 60/week @ 2024-09-09 48/week @ 2024-09-16 66/week @ 2024-09-23 39/week @ 2024-09-30 3/week @ 2024-10-07 43/week @ 2024-10-14 34/week @ 2024-10-21 49/week @ 2024-10-28 53/week @ 2024-11-04 13/week @ 2024-11-11

151 downloads per month
Used in 3 crates

MIT/Apache

23KB
472 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–12MB
~127K SLoC