From 6e32b85e967bf2391019ef8bb6cd048dc94fa6a2 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 18 Oct 2023 01:19:14 -0400 Subject: [PATCH 1/3] Update async-io and env_logger None of these require any changes to the src of if-watch, as locally verified by building for the various target configs (linux, windows, iOS, macOS, and freebsd for "other"). They also don't impact the public API. async-io just released a 2.0.0 (https://github.com/smol-rs/async-io/releases/tag/v2.0.0) which offers saner dependencies and fixes an unsafety (which I don't claim is relevant to usage here, yet justifies async-io 2.0.0 adoption in general across the ecosystem). env_logger is a why-not since it can also be done without editing the src. --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4199dcd..b55150e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,11 +36,11 @@ if-addrs = "0.7.0" windows = { version = "0.51.0", features = ["Win32_NetworkManagement_IpHelper", "Win32_Foundation", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock"] } [target.'cfg(not(any(target_os = "ios", target_os = "linux", target_os = "macos", target_os = "windows")))'.dependencies] -async-io = "1.6.0" +async-io = "2.0.0" if-addrs = "0.7.0" [dev-dependencies] -env_logger = "0.9.0" +env_logger = "0.10.0" smol = "1.2.5" tokio = { version = "1.21.2", features = ["rt", "macros"] } From 9bea7866fd477d27a4c21853a4edacccacbe4d7e Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 18 Oct 2023 01:39:04 -0400 Subject: [PATCH 2/3] Update if-addrs if-addrs 0.7 (the prior version) used winapi. if-addrs 0.8 moved to the official Windows bindings provided by Microsoft. 0.8 also included a bug fix. 0.9 added support for big-endian architectures. --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b55150e..651d082 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,18 +26,18 @@ rtnetlink = { version = "0.10.0", default-features = false } [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies] core-foundation = "0.9.2" -if-addrs = "0.7.0" +if-addrs = "0.10.0" system-configuration = "0.5.0" tokio = { version = "1.21.2", features = ["rt"], optional = true } smol = { version = "1.2.5", optional = true } [target.'cfg(target_os = "windows")'.dependencies] -if-addrs = "0.7.0" +if-addrs = "0.10.0" windows = { version = "0.51.0", features = ["Win32_NetworkManagement_IpHelper", "Win32_Foundation", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock"] } [target.'cfg(not(any(target_os = "ios", target_os = "linux", target_os = "macos", target_os = "windows")))'.dependencies] async-io = "2.0.0" -if-addrs = "0.7.0" +if-addrs = "0.10.0" [dev-dependencies] env_logger = "0.10.0" From 59401ad695d73739191a9e7cc12e9058c7003494 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 18 Oct 2023 15:28:17 -0400 Subject: [PATCH 3/3] Bump minor version, update CHANGELOG --- CHANGELOG.md | 7 +++++++ Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bc4681..223afaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.2.0] + +### Fixed + +- Update `async-io`, `if-addrs` crates. + See [PR 33](https://github.com/mxinden/if-watch/pull/33). + ## [3.1.0] ### Fixed diff --git a/Cargo.toml b/Cargo.toml index 651d082..b67837b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "if-watch" -version = "3.1.0" +version = "3.2.0" authors = ["David Craven ", "Parity Technologies Limited "] edition = "2021" keywords = ["asynchronous", "routing"]