2 releases
0.1.1 | Aug 23, 2021 |
---|---|
0.1.0 | Aug 22, 2021 |
#5 in #raknet
17KB
233 lines
rsquery
A fast and easy rust minecraft query library
lib.rs
:
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
Dependencies
~3–11MB
~112K SLoC