# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.63" name = "pcap" version = "2.2.0" authors = [ "Sean Bowe ", "Wojciech Kozlowski ", "Hideki Sekine", ] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "A packet capture API around pcap/wpcap" homepage = "https://github.com/rust-pcap/pcap" documentation = "https://docs.rs/pcap" readme = "README.md" keywords = [ "pcap", "packet", "sniffing", ] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-pcap/pcap" [package.metadata.docs.rs] all-features = true [lib] name = "pcap" path = "src/lib.rs" [[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"] [[test]] name = "lib" path = "tests/lib.rs" [[test]] name = "tap_tests" path = "tests/tap_tests.rs" [dependencies.bitflags] version = "1.3" [dependencies.errno] version = "0.2" [dependencies.futures] version = "0.3" optional = true [dependencies.gat-std] version = "0.1.1" optional = true [dependencies.libc] version = "0.2" [dependencies.tokio] version = "1.0" features = [ "net", "rt", "macros", "rt-multi-thread", ] optional = true [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" [build-dependencies.libloading] version = "0.8" [build-dependencies.pkg-config] version = "0.3" [build-dependencies.regex] version = "1" [features] capture-stream = [ "tokio", "futures", "windows-sys/Win32_System_Threading", ] lending-iter = ["gat-std"] [target.'cfg(not(target_os = "windows"))'.dev-dependencies.tun-tap] version = "0.1.3" [target.'cfg(target_os = "windows")'.dependencies.windows-sys] version = "0.36.1" features = [ "Win32_Foundation", "Win32_Networking_WinSock", ] [target.'cfg(target_os = "windows")'.dev-dependencies.eui48] version = "1.1"