From ae87ba51b2cd437ec4f60a530e7f02d1812c38c6 Mon Sep 17 00:00:00 2001 From: kolapapa Date: Tue, 25 Oct 2022 20:11:40 +0800 Subject: [PATCH] bump ver 0.7.3 --- Cargo.toml | 16 ++++++++-------- README.md | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ef72a67..fedcadc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "surge-ping" -version = "0.7.2" +version = "0.7.3" authors = ["kolapapa "] edition = "2018" license = "MIT" @@ -12,20 +12,20 @@ categories = ["network-programming", "asynchronous"] [dependencies] hex = "0.4.3" -parking_lot = "0.12.0" -pnet_packet = "0.30" +parking_lot = "0.12.1" +pnet_packet = "0.31" rand = "0.8.5" -socket2 = { version = "0.4.4", features = ["all"] } -thiserror = "1.0.31" -tokio = { version = "1.18", features = ["time", "sync"] } -tracing = "0.1.34" +socket2 = { version = "0.4.7", features = ["all"] } +thiserror = "1.0.37" +tokio = { version = "1.21", features = ["time", "sync"] } +tracing = "0.1.37" [dev-dependencies] structopt = "0.3.26" pretty_env_logger = "0.4.0" tokio = { version = "1", features = ["full"] } -futures = "0.3.21" +futures = "0.3.25" [[example]] name = "simple" diff --git a/README.md b/README.md index 7dfef40..ee673cb 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ async fn main() { multi address usage: [multi_ping.rs](https://github.com/kolapapa/surge-ping/blob/main/examples/multi_ping.rs) ### Ping(ICMP) +> sending ping packets requires either running as `root` or setting a capability on your binary, at least on Linux. This is a restriction enforced by the system, not by this `crate`. + There are three example programs that you can run on your own.