#minecraft #async #mc #protocols #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

#863 in Asynchronous

Download history 49/week @ 2024-12-16 6/week @ 2024-12-23 13/week @ 2024-12-30 42/week @ 2025-01-06 66/week @ 2025-01-13 58/week @ 2025-01-20 26/week @ 2025-01-27 62/week @ 2025-02-03 62/week @ 2025-02-10 37/week @ 2025-02-17 53/week @ 2025-02-24 29/week @ 2025-03-03 70/week @ 2025-03-10 53/week @ 2025-03-17 75/week @ 2025-03-24 22/week @ 2025-03-31

220 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
~129K SLoC