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

@ -2,6 +2,17 @@ Who knows what the future holds...
# X.Y.Z - DD/MM/YYYY
# 0.8.0 24/08/2025
Breaking:
- MSRV is now `1.82.0` (was `1.81.0`), this is due to deps we rely on requiring a higher version
Crate:
- Some minor clippy fixes
- Updated dependencies
# 0.7.0 - 23/04/2025
Breaking:

View file

@ -1,6 +1,6 @@
[package]
name = "gamedig"
version = "0.7.0"
version = "0.8.0"
edition = "2021"
authors = [
"rust-GameDig contributors [https://github.com/gamedig/rust-gamedig/contributors]",
@ -13,7 +13,7 @@ documentation = "https://docs.rs/gamedig/latest/gamedig/"
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 = ["parser-implementations", "parsing", "network-programming", "encoding"]
[features]
@ -40,23 +40,23 @@ tls = ["ureq/tls"]
[dependencies]
byteorder = "1.5"
bzip2-rs = "0.1"
crc32fast = "1.4"
crc32fast = "1.5"
base64 = "0.22.0"
encoding_rs = "0.8"
ureq = { version = "2.9", default-features = false, features = ["gzip", "json"] }
ureq = { version = "2.12", default-features = false, features = ["gzip", "json"] }
url = "2"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
phf = { version = "0.11", optional = true, features = ["macros"] }
phf = { version = "0.13", optional = true, features = ["macros"] }
clap = { version = "4.5.4", optional = true, features = ["derive"] }
clap = { version = "4.5", optional = true, features = ["derive"] }
pcap-file = { version = "2.0", optional = true }
pnet_packet = { version = "0.35", optional = true }
lazy_static = { version = "1.4", optional = true }
lazy_static = { version = "1.5", optional = true }
[dev-dependencies]
gamedig-id-tests = { path = "../id-tests", default-features = false }

View file

@ -211,7 +211,7 @@ impl HttpClient {
Host::Ipv4(ip) => SocketAddr::V4(SocketAddrV4::new(ip, port)),
Host::Ipv6(ip) => SocketAddr::V6(SocketAddrV6::new(ip, port, 0, 0)),
Host::Domain(domain) => {
format!("{}:{}", domain, port)
format!("{domain}:{port}")
.to_socket_addrs()
.map_err(|e| HostLookup.context(e))?
.next()

View file

@ -76,8 +76,7 @@ impl Unreal2Protocol {
if packet_type != expected_packet_type {
Err(PacketBad.context(format!(
"Packet response ({:?}) didn't match request ({:?}) packet type",
packet_type, expected_packet_type
"Packet response ({packet_type:?}) didn't match request ({expected_packet_type:?}) packet type",
)))
} else {
Ok(())
@ -115,7 +114,7 @@ impl Unreal2Protocol {
let r = Self::consume_response_headers(&mut buffer, PacketKind::MutatorsAndRules);
if r.is_err() {
println!("{:?}", r);
println!("{r:?}");
break;
}