[package]
edition = "2024"
rust-version = "1.85"
name = "massping"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ICMP ping library for sending batches of ICMP echo request packets and measuring the roundtrip time"
readme = "README.md"
keywords = [
"icmp",
"ping",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/M4SS-Code/massping"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["stream"]
stream = ["dep:futures-core"]
[lib]
name = "massping"
path = "src/lib.rs"
[[example]]
name = "ping"
path = "examples/ping.rs"
[[example]]
name = "raw_ping"
path = "examples/raw_ping.rs"
[[test]]
name = "runtime_compatibility"
path = "tests/runtime_compatibility.rs"
[[test]]
name = "stream_termination"
path = "tests/stream_termination.rs"
[dependencies.bytes]
version = "1.3"
[dependencies.futures-core]
version = "0.3"
optional = true
[dependencies.pnet_packet]
version = "0.35"
[dependencies.rand]
version = "0.9"
features = ["thread_rng"]
default-features = false
[dependencies.socket2]
version = "0.6"
features = ["all"]
[dependencies.tokio]
version = "1.25"
features = [
"net",
"sync",
"rt",
"time",
]
[dev-dependencies.futures-util]
version = "0.3"
default-features = false
[dev-dependencies.tokio]
version = "1.25"
features = [
"macros",
"rt-multi-thread",
]