msq-rs
Rust library implementation of the legacy Master Server Query Protocol.
License
msq-rs is released under the MIT License
Dependencies
Instructions
Direct from the repository
- Add the following in
Cargo.toml: msq = { git = "https://github.com/mtcw99/msq-rs.git" }
crates.io
- Coming soon
Quick Start
// Startup the client
let mut client = new.await?;
// Connect to the master server
client.connect.await?;
// Maximum amount of servers we wanted to query
client.max_servers_on_query;
// Do a query, which is restricted to the Europe region
// and filter by appid 240 (CS:S), maps that are not
// de_dust2, and gametype tags of friendlyfire and alltalk
let servers = client
.query
.end
.gametype
.await?;
Misc
The following library goes well with this one:
- Source A2S Queries: a2s-rs