rscap 0.3.2

Cross-platform packet capture and transmission utilities
# 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.85"
name = "rscap"
version = "0.3.2"
authors = ["Nathaniel Bennett <me[at]nathanielbennett[dotcom]>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform packet capture and transmission utilities"
readme = "README.md"
keywords = [
    "packets",
    "capture",
    "pcap",
    "npcap",
    "bpf",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/pkts-rs/rscap"

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

[features]
async-std = [
    "dep:async-io",
    "dep:async-std",
]
mio = ["dep:mio"]
npcap = []
npcap-runtime = ["npcap"]
smol = [
    "dep:async-io",
    "dep:smol",
]
tokio = ["dep:tokio"]

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

[dependencies.async-io]
version = "2.3.4"
optional = true

[dependencies.async-std]
version = "1.13.0"
optional = true

[dependencies.bitflags]
version = "2.6.0"

[dependencies.libc]
version = "0.2"

[dependencies.mio]
version = "0.8.11"
features = ["net"]
optional = true

[dependencies.once_cell]
version = "1.19"

[dependencies.pkts-common]
version = "0.1.0"

[dependencies.smol]
version = "2.0.2"
optional = true

[dependencies.tokio]
version = "1.38.1"
features = [
    "net",
    "rt",
    "time",
]
optional = true

[dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_Networking_WinSock",
    "Win32_NetworkManagement_IpHelper",
    "Win32_System_IO",
    "Win32_System_Kernel",
    "Win32_System_LibraryLoader",
    "Win32_System_Threading",
]