Maintenance: dep updates and clippy fixs (#243)

* chore(deps): update crc32fast to v1.5

* chore(deps): update ureq to v2.12

* chore(deps): update phf to v0.13

* chore(deps): update clap to v4.5

* chore(deps): update lazy_static to v1.5

* chore(deps): update thiserror to v2.0.16

* chore(deps): update clap to v4.5

* chore(deps): update bson to v2.15

* chore(deps): update base64 to v0.22

* chore(deps): update quick-xml to v0.38

* chore(deps): update webbrowser to v1.0

* chore(clippy): fix a load of "variables can be used directly"

* chore(ci): update MSRV toolchain to 1.82.0

* chore(pre-commit): update MSRV to 1.82.0

* chore(README): update Minimum Supported Rust Version to 1.82.0

* chore(VERSIONS): update MSRV to 1.82.0

* chore(cli): bump version to 0.4.0 and update MSRV to 1.82.0

* chore(release): bump version to 0.8.0 and update MSRV to 1.82.0
This commit is contained in:
Cain 2025-08-25 12:52:54 +01:00 committed by GitHub
parent d6fe78f0e6
commit 080f327ab6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 54 additions and 33 deletions

View file

@ -4,6 +4,17 @@ Who knows what the future holds...
Nothing... yet.
# 0.4.0 - 24/08/2025
### Breaking Changes:
- MSRV has been updated to `1.82.0` to match the latest `gamedig` version.
### Changes:
- Some minor clippy fixes
- Updated dependencies
# 0.3.0 - 23/04/2025
### Changes:

View file

@ -5,14 +5,14 @@ authors = [
]
description = "A command line interface for gamedig"
license = "MIT"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
default-run = "gamedig_cli"
homepage = "https://gamedig.github.io/"
repository = "https://github.com/gamedig/rust-gamedig"
readme = "README.md"
keywords = ["server", "query", "game", "check", "status"]
rust-version = "1.81.0"
rust-version = "1.82.0"
categories = ["command-line-interface"]
[features]
@ -31,9 +31,9 @@ browser = ["dep:webbrowser"]
[dependencies]
# Core Dependencies
thiserror = "2.0.0"
clap = { version = "4.5.4", default-features = false, features = ["derive"] }
gamedig = { version = "0.7.0", default-features = false, features = [
thiserror = "2.0.16"
clap = { version = "4.5", default-features = false, features = ["derive"] }
gamedig = { version = "0.8.0", default-features = false, features = [
"clap",
"games",
"game_defs",
@ -44,16 +44,16 @@ gamedig = { version = "0.7.0", default-features = false, features = [
serde = { version = "1", optional = true, default-features = false }
# BSON
bson = { version = "2.8.1", optional = true, default-features = false }
base64 = { version = "0.22.0", optional = true, default-features = false, features = ["std"] }
bson = { version = "2.15", optional = true, default-features = false }
base64 = { version = "0.22", optional = true, default-features = false, features = ["std"] }
hex = { version = "0.4.3", optional = true, default-features = false }
# JSON
serde_json = { version = "1", optional = true, default-features = false }
# XML
quick-xml = { version = "0.37.0", optional = true, default-features = false }
quick-xml = { version = "0.38", optional = true, default-features = false }
# Browser
webbrowser = { version = "1.0.0", optional = true, default-features = false }
webbrowser = { version = "1.0", optional = true, default-features = false }

View file

@ -167,7 +167,7 @@ fn resolve_ip_or_domain<T: AsRef<str>>(host: T, extra_options: &mut Option<Extra
fn resolve_domain(domain: &str) -> Result<IpAddr> {
// Append a dummy port to perform socket address resolution and then extract the
// IP
Ok(format!("{}:0", domain)
Ok(format!("{domain}:0")
.to_socket_addrs()
.map_err(|_| Error::InvalidHostname(domain.to_string()))?
.next()
@ -248,7 +248,7 @@ fn output_result<T: CommonResponse + ?Sized>(output_mode: OutputMode, format: Ou
/// # Arguments
/// * `result` - A result that can be output using the debug formatter.
fn output_result_debug<R: std::fmt::Debug>(result: R) {
println!("{:#?}", result);
println!("{result:#?}");
}
/// Output the result as a JSON object.
@ -374,7 +374,7 @@ fn output_result_xml<T: serde::Serialize>(result: T) -> Result<()> {
let xml_bytes = writer.into_inner();
let xml_string = String::from_utf8(xml_bytes).expect("Failed to convert XML bytes to UTF-8 string");
println!("{}", xml_string);
println!("{xml_string}");
Ok(())
}
@ -446,7 +446,7 @@ fn main() -> Result<()> {
output_result(output_mode, format, result.as_ref());
}
Action::Source => {
println!("{}", GAMEDIG_HEADER);
println!("{GAMEDIG_HEADER}");
#[cfg(feature = "browser")]
{