# 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 = "packet_parser"
version = "3.0.1"
authors = ["Cyprien Avico avicocyprien@yahoo.com"]
build = false
exclude = [
    ".github/",
    ".gitignore",
    "tests/",
    "benches/",
    "tools/",
    "perf_by_version.json",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A powerful and modular Rust crate for network packet parsing."
homepage = "https://github.com/Akmot9/Packet-parser"
readme = "README.md"
keywords = [
    "network",
    "packets",
    "parser",
    "cybersecurity",
    "Rust",
]
categories = [
    "network-programming",
    "parsing",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/Akmot9/Packet-parser"

[features]
default = []
doc-diagrams = ["dep:aquamarine"]
parse_timing = []

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

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

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

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

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

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

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

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

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

[dependencies.aquamarine]
version = "0.6.0"
optional = true

[dependencies.chrono]
version = "0.4.45"

[dependencies.hex]
version = "0.4.3"

[dependencies.pcap-file]
version = "2.0.0"

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

[dependencies.thiserror]
version = "2.0.18"

[dependencies.uuid]
version = "1.23.4"
features = ["v4"]
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.pcap]
version = "2.4.0"

[dev-dependencies.pnet]
version = "0.35.0"

[dev-dependencies.serde_json]
version = "1.0.150"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
rpath = false
panic = "abort"
incremental = false
strip = false
