pcap 2.3.0

A packet capture API around pcap/wpcap
Documentation
[build-dependencies.libloading]
version = "0.8"

[build-dependencies.pkg-config]
version = "0.3"

[build-dependencies.regex]
version = "1"

[dependencies.bitflags]
version = "1.3"

[dependencies.errno]
version = "0.2"

[dependencies.futures]
optional = true
version = "0.3"

[dependencies.gat-std]
optional = true
version = "0.1.1"

[dependencies.libc]
version = "0.2"

[dependencies.tokio]
features = ["net", "rt", "macros", "rt-multi-thread"]
optional = true
version = "1.0"

[dev-dependencies.etherparse]
version = "0.13.0"

[dev-dependencies.mockall]
version = "0.11.4"

[dev-dependencies.once_cell]
version = "1.14.0"

[dev-dependencies.tempfile]
version = "3.10"

[[example]]
name = "easylisten"
path = "examples/easylisten.rs"

[[example]]
name = "getdevices"
path = "examples/getdevices.rs"

[[example]]
name = "getstatistics"
path = "examples/getstatistics.rs"

[[example]]
name = "iterprint"
path = "examples/iterprint.rs"

[[example]]
name = "lendingiterprint"
path = "examples/lendingiterprint.rs"
required-features = ["lending-iter"]

[[example]]
name = "listenlocalhost"
path = "examples/listenlocalhost.rs"

[[example]]
name = "loop"
path = "examples/loop.rs"

[[example]]
name = "nfbpfcompile"
path = "examples/nfbpfcompile.rs"

[[example]]
name = "savefile"
path = "examples/savefile.rs"

[[example]]
name = "savemultiplefiles"
path = "examples/savemultiplefiles.rs"

[[example]]
name = "sendqueue"
path = "examples/sendqueue.rs"

[[example]]
name = "stdin"
path = "examples/stdin.rs"

[[example]]
name = "streamecho"
path = "examples/streamecho.rs"
required-features = ["capture-stream"]

[[example]]
name = "streamlisten"
path = "examples/streamlisten.rs"
required-features = ["capture-stream"]

[[example]]
name = "streamlisten_mt"
path = "examples/streamlisten_mt.rs"
required-features = ["capture-stream"]

[[example]]
name = "winevt"
path = "examples/winevt.rs"

[features]
capture-stream = ["tokio", "futures", "windows-sys/Win32_System_Threading"]
lending-iter = ["gat-std"]

[lib]
name = "pcap"
path = "src/lib.rs"

[package]
authors = ["Sean Bowe <ewillbefull@gmail.com>", "Wojciech Kozlowski <wk@wojciechkozlowski.eu>", "Hideki Sekine"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
description = "A packet capture API around pcap/wpcap"
documentation = "https://docs.rs/pcap"
edition = "2021"
homepage = "https://github.com/rust-pcap/pcap"
keywords = ["pcap", "packet", "sniffing"]
license = "MIT OR Apache-2.0"
name = "pcap"
readme = "README.md"
repository = "https://github.com/rust-pcap/pcap"
rust-version = "1.63"
version = "2.3.0"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]

[target.'cfg(not(target_os = "windows"))'.dev-dependencies.tun-tap]
version = "0.1.3"

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
features = ["Win32_Foundation", "Win32_Networking_WinSock"]
version = "0.36.1"

[target.'cfg(target_os = "windows")'.dev-dependencies.eui48]
default-features = false
version = "1.1"

[target.'cfg(target_os = "windows")'.dev-dependencies.windows-sys]
features = ["Win32_System_Threading"]
version = "0.36.1"

[[test]]
name = "lib"
path = "tests/lib.rs"

[[test]]
name = "tap_tests"
path = "tests/tap_tests.rs"