#minecraft #mc #serverlistping

async-minecraft-ping

An async Rust client for the Minecraft ServerListPing protocol

7 releases (breaking)

Uses new Rust 2021

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

#221 in Asynchronous

Download history 32/week @ 2022-04-14 12/week @ 2022-04-21 26/week @ 2022-04-28 47/week @ 2022-05-05 140/week @ 2022-05-12 39/week @ 2022-05-19 39/week @ 2022-05-26 94/week @ 2022-06-02 23/week @ 2022-06-09 33/week @ 2022-06-16 12/week @ 2022-06-23 16/week @ 2022-06-30 26/week @ 2022-07-07 15/week @ 2022-07-14 45/week @ 2022-07-21 70/week @ 2022-07-28

164 downloads per month
Used in mcquery

MIT/Apache

22KB
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–9MB
~153K SLoC