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

#623 in Asynchronous

Download history 77/week @ 2024-12-08 62/week @ 2024-12-15 6/week @ 2024-12-22 6/week @ 2024-12-29 38/week @ 2025-01-05 67/week @ 2025-01-12 66/week @ 2025-01-19 26/week @ 2025-01-26 55/week @ 2025-02-02 57/week @ 2025-02-09 46/week @ 2025-02-16 54/week @ 2025-02-23 33/week @ 2025-03-02 55/week @ 2025-03-09 59/week @ 2025-03-16 70/week @ 2025-03-23

227 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