[package] name = "netprobe" version = "0.4.0" edition = "2021" authors = ["shellrow "] description = "Cross-Platform Network Probe Library" repository = "https://github.com/shellrow/netprobe" readme = "README.md" keywords = ["network"] categories = ["network-programming"] license = "MIT" [dependencies] rand = "0.8" chrono = "0.4" default-net = { version = "0.21", optional = true } xenet = { version = "0.4", optional = true } hickory-resolver = { version = "0.24" } tokio = { version = "1.21", optional = true } futures = {version = "0.3", features = ["executor", "thread-pool"], optional = true } serde = { version = "1", features = ["derive"], optional = true } [features] default = ["dep:default-net", "dep:xenet"] serde = ["dep:serde", "default-net/serde", "xenet/serde"] async = ["dep:tokio", "dep:futures"] [[example]] name = "icmp_ping" path = "examples/icmp_ping.rs" [[example]] name = "tcp_ping" path = "examples/tcp_ping.rs" [[example]] name = "udp_ping" path = "examples/udp_ping.rs" [[example]] name = "udp_trace" path = "examples/udp_trace.rs" [[example]] name = "arp" path = "examples/arp.rs" [[example]] name = "ndp" path = "examples/ndp.rs" [[example]] name = "fingerprinting" path = "examples/fingerprinting.rs"