From 050291990a62187a770e47685b5f77caab065789 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Wed, 1 Apr 2026 12:52:07 +0700 Subject: [PATCH] build: migrate from icmp-socket to icmp-socket2 --- Cargo.lock | 9 +++++---- Cargo.toml | 7 ++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 797dfbd..bda9d4b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -189,9 +189,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424" [[package]] -name = "icmp-socket" -version = "0.4.0" -source = "git+https://github.com/Lochnair/icmp-socket.git?tag=v0.4.0#ca3695e3e104713fda9872546545dc5266f6ed4c" +name = "icmp-socket2" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a72abd00afc496b7dc6a0cb275c19c669da9d0c2ee5d4c2570a8a67b83b53f" dependencies = [ "socket2", ] @@ -395,7 +396,7 @@ version = "0.2.0" dependencies = [ "anyhow", "fastrand", - "icmp-socket", + "icmp-socket2", "libc", "log", "netlink-bindings", diff --git a/Cargo.toml b/Cargo.toml index 5bf1b74..29af7d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ strip = "symbols" [dependencies] anyhow = "1.0" -icmp-socket = "0.4.0" +icmp-socket2 = "0.4.1" netlink-bindings = { version = "0.2", features = ["rt-link", "tc"] } netlink-socket2 = "0.2" fastrand = "2" @@ -34,7 +34,4 @@ features = ["std"] version = "0.4" [features] -uci = ["dep:rust-uci"] - -[patch.crates-io] -icmp-socket = { git = 'https://github.com/Lochnair/icmp-socket.git', tag = "v0.4.0"} +uci = ["dep:rust-uci"] \ No newline at end of file