Expand description
An async minecraft query library implementing raknet pings and generic long querying.
This crate is mainly meant for use with Minecraft Bedrock Edition, but is usable on java servers with a long query. Example
use rsquery::Client;
#[tokio::main]
async fn main() -> Result<(), Error> {
// Returns rsquery::model::ShortQuery which implements Debug.
println!("{:?}", Client::new("velvetpractice.live").await?.short_query().await?);
Ok(())
}
This crate works off of a custom Client struct and two response structs listed here:
Client
ShortQuery
LongQuery