From dc39531dc60a6c9764cb389ec958e80fcac244ba Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Fri, 21 Mar 2025 12:21:03 -0500 Subject: [PATCH] update deps --- Cargo.lock | 60 +++++++++++++++++++------------------------------- Cargo.toml | 6 ++--- src/client.rs | 2 +- src/prelude.rs | 1 - 4 files changed, 27 insertions(+), 42 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0bca5ea..bbda06f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "autocfg" @@ -15,10 +15,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" [[package]] -name = "cc" -version = "1.0.72" +name = "bitflags" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" +checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd" [[package]] name = "cfg-if" @@ -26,6 +26,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + [[package]] name = "configparser" version = "3.0.0" @@ -65,9 +71,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.135" +version = "0.2.170" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68783febc7782c6c5cb401fbda4de5a9898be1762314da0bb2c10ced61f18b0c" +checksum = "875b3680cb2f8f71bdcf9a30f38d48282f5d3c95cbf9b3fa57269bb5d5c06828" [[package]] name = "log" @@ -85,7 +91,7 @@ dependencies = [ "configparser", "directories", "mac_address", - "nix 0.25.0", + "nix", "rand", "thiserror", "tokio", @@ -93,19 +99,19 @@ dependencies = [ [[package]] name = "mac_address" -version = "1.1.2" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89544d9544366f6cda81244514a80809b137b5a179947b73bfa9f2797480de69" +checksum = "c0aeb26bf5e836cc1c341c8106051b573f1766dfa05aa87f0b98be5e51b02303" dependencies = [ - "nix 0.22.2", + "nix", "winapi", ] [[package]] name = "memoffset" -version = "0.6.5" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" dependencies = [ "autocfg", ] @@ -134,31 +140,17 @@ dependencies = [ [[package]] name = "nix" -version = "0.22.2" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3bb9a13fa32bc5aeb64150cd3f32d6cf4c748f8f8a417cce5d2eb976a8370ba" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" dependencies = [ - "bitflags", - "cc", + "bitflags 2.9.0", "cfg-if", + "cfg_aliases", "libc", "memoffset", ] -[[package]] -name = "nix" -version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e322c04a9e3440c327fca7b6c8a63e6890a32fa2ad689db972425f07e0d22abb" -dependencies = [ - "autocfg", - "bitflags", - "cfg-if", - "libc", - "memoffset", - "pin-utils", -] - [[package]] name = "ntapi" version = "0.3.6" @@ -174,12 +166,6 @@ version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443" -[[package]] -name = "pin-utils" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" - [[package]] name = "ppv-lite86" version = "0.2.15" @@ -250,7 +236,7 @@ version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" dependencies = [ - "bitflags", + "bitflags 1.2.1", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index b1b4629..b59e288 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Trish"] categories = ["command-line-utilities"] description = "Report and find your MAC and IP addresses within LANs" -edition = "2021" +edition = "2024" homepage = "https://six-five-six-four.com/git/reactor/lookaround" keywords = ["address", "discovery", "ip", "network"] license = "AGPL-3.0" @@ -14,8 +14,8 @@ version = "0.1.6" [dependencies] configparser = "3.0.0" directories = "5.0.0" -mac_address = "1.1.2" -nix = "0.25.0" +mac_address = "1.1.8" +nix = "0.29.0" rand = "0.8.4" thiserror = "1.0.30" tokio = { version = "1.14.0", features = ["fs", "net", "rt", "time"] } diff --git a/src/client.rs b/src/client.rs index f65577e..bb314f6 100644 --- a/src/client.rs +++ b/src/client.rs @@ -32,7 +32,7 @@ pub async fn client > (args: I) -> Result <(), AppErro let mut peers = HashMap::with_capacity (10); - timeout (Duration::from_millis (params.timeout_ms), listen_for_responses (&*socket, params.nicknames, &mut peers)).await.ok (); + timeout (Duration::from_millis (params.timeout_ms), listen_for_responses (&socket, params.nicknames, &mut peers)).await.ok (); let mut peers: Vec <_> = peers.into_iter ().collect (); peers.sort_by_key (|(_, v)| v.mac); diff --git a/src/prelude.rs b/src/prelude.rs index e432662..4ab5016 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -14,7 +14,6 @@ pub use std::{ sync::Arc, time::{ Duration, - Instant, }, };