# 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 = "2024"
name = "sniffglue"
version = "0.16.2"
authors = ["kpcyrd <git@rxv.cc>"]
build = false
exclude = [
    "pcaps/**/*",
    "**/*.pcap",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Secure multithreaded packet sniffer"
readme = "README.md"
categories = ["command-line-utilities"]
license = "GPL-3.0-or-later"
repository = "https://github.com/kpcyrd/sniffglue"

[package.metadata.deb]
license-file = ["LICENSE"]
extended-description = "sniffglue is a network sniffer written in rust. Network packets are parsed concurrently using a thread pool to utilize all cpu cores. Project goals are that you can run sniffglue securely on untrusted networks and that it must not crash when processing packets. The output should be as useful as possible by default."
depends = "$auto"
section = "net"
priority = "optional"

[lib]
name = "sniffglue"
path = "src/lib.rs"
doc = false

[[bin]]
name = "sniffglue"
path = "src/main.rs"

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

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

[[bench]]
name = "bench"
path = "benches/bench.rs"

[dependencies.ansi_term]
version = "0.12"

[dependencies.anyhow]
version = "1"

[dependencies.bstr]
version = "1"
features = ["serde"]

[dependencies.clap]
version = "4.4.11"
features = ["derive"]

[dependencies.clap_complete]
version = "4.4.4"

[dependencies.data-encoding]
version = "2.5.0"

[dependencies.dhcp4r]
version = "0.2.0"

[dependencies.dirs-next]
version = "2.0"

[dependencies.dns-parser]
version = "0.8"

[dependencies.env_logger]
version = "0.11"

[dependencies.httparse]
version = "1.8.0"

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.nix]
version = "0.31"
features = [
    "fs",
    "user",
]

[dependencies.nom]
version = "8"

[dependencies.num_cpus]
version = "1.6"

[dependencies.pcap-sys]
version = "0.1.3"

[dependencies.pktparse]
version = "0.7.1"
features = ["serde"]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

[dependencies.tls-parser]
version = "0.12"

[dependencies.toml]
version = "1"

[dependencies.uzers]
version = "0.12"

[dev-dependencies.boxxy]
version = "0.14"

[target.'cfg(target_os="linux")'.dependencies.syscallz]
version = "0.17"
