# 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"
rust-version = "1.85"
name = "packet-dissector-esp"
version = "0.3.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "IP Encapsulating Security Payload (ESP, RFC 4303) dissector for packet-dissector"
readme = "README.md"
keywords = [
    "packet",
    "network",
    "dissector",
    "parser",
    "ipsec",
]
categories = [
    "network-programming",
    "parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/higebu/packet-dissector"
resolver = "2"

[features]
decrypt = [
    "aes",
    "cbc",
    "aes-gcm",
]

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

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

[[bench]]
name = "dissect"
path = "benches/dissect.rs"
harness = false

[dependencies.aes]
version = "0.9"
optional = true

[dependencies.aes-gcm]
version = "0.10"
optional = true

[dependencies.cbc]
version = "0.2"
optional = true

[dependencies.packet-dissector-core]
version = "0.3.2"

[dev-dependencies.aes]
version = "0.9"

[dev-dependencies.aes-gcm]
version = "0.10"

[dev-dependencies.cbc]
version = "0.2"

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