mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Add proper MSRV to Cargo.toml
This commit is contained in:
parent
3928d3a818
commit
824c4d34c0
4 changed files with 4 additions and 6 deletions
|
|
@ -10,9 +10,7 @@ documentation = "https://docs.rs/gamedig/latest/gamedig/"
|
||||||
repository = "https://github.com/CosminPerRam/rust-gamedig"
|
repository = "https://github.com/CosminPerRam/rust-gamedig"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
keywords = ["server", "query", "game", "check", "status"]
|
keywords = ["server", "query", "game", "check", "status"]
|
||||||
|
rust-version = "1.56.1"
|
||||||
[package.metadata]
|
|
||||||
msrv = "1.58.1"
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bzip2-rs = "0.1.2" # for compression
|
bzip2-rs = "0.1.2" # for compression
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ fn main() {
|
||||||
let response = mc::query("127.0.0.1", None);
|
let response = mc::query("127.0.0.1", None);
|
||||||
|
|
||||||
match response {
|
match response {
|
||||||
Err(error) => println!("Couldn't query, error: {error}"),
|
Err(error) => println!("Couldn't query, error: {}", error),
|
||||||
Ok(r) => println!("{:#?}", r)
|
Ok(r) => println!("{:#?}", r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ use gamedig::games::tf2;
|
||||||
fn main() {
|
fn main() {
|
||||||
let response = tf2::query("127.0.0.1", None); //or Some(27015), None is the default protocol port (which is 27015)
|
let response = tf2::query("127.0.0.1", None); //or Some(27015), None is the default protocol port (which is 27015)
|
||||||
match response {
|
match response {
|
||||||
Err(error) => println!("Couldn't query, error: {error}"),
|
Err(error) => println!("Couldn't query, error: {}", error),
|
||||||
Ok(r) => println!("{:#?}", r)
|
Ok(r) => println!("{:#?}", r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -433,7 +433,7 @@ fn get_response(address: &str, port: u16, app: App, gather_settings: GatheringSe
|
||||||
if let App::Source(source_app) = &app {
|
if let App::Source(source_app) = &app {
|
||||||
if let Some(appid) = source_app {
|
if let Some(appid) = source_app {
|
||||||
if *appid != info.appid {
|
if *appid != info.appid {
|
||||||
return Err(BadGame(format!("AppId: {appid}")));
|
return Err(BadGame(format!("AppId: {}", appid)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue