Crates.io | mcio |
lib.rs | mcio |
version | 0.3.1 |
source | src |
created_at | 2020-04-12 05:04:09.268198 |
updated_at | 2020-04-19 09:02:24.40084 |
description | minecraft server list ping library |
homepage | |
repository | https://www.github.com/bizarre/mcio |
max_upload_size | |
id | 228897 |
size | 35,890 |
mcio is a simple library for Rust that completes a Minecraft handshake and server list ping. It can be used to fetch a Minecraft server's:
As of right now, all calls to mcio
are blocking.
fn main() {
let response = mcio::ping("mc.hypixel.net", 25565, 315).expect("Failed to get response.");
println!("Players: {}/{}", response.players.online, response.players.max);
/* Players: 62075/85000 */
}