nata 0.1.0

Network packet manipulation toolkit
Documentation
# 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 = "2018"
rust-version = "1.88"
name = "nata"
version = "0.1.0"
authors = ["Emmanuel Thompson <eet6646@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Network packet manipulation toolkit"
readme = "README.md"
keywords = [
    "packet",
    "network",
    "serialization",
    "deserialization",
    "parse",
]
categories = [
    "network-programming",
    "simulation",
    "parsing",
    "no-std",
]
license = "MIT or Apache-2.0"
repository = "https://github.com/sharksforarms/nata"

[package.metadata.docs.rs]
features = [
    "pnet",
    "libpcap",
]

[features]
default = ["std"]
libpcap = ["pnet/pcap"]
std = [
    "pnet",
    "pcap-file",
]

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

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

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

[[example]]
name = "icmp_ping"
path = "examples/icmp_ping.rs"
required-features = [
    "std",
    "libpcap",
]

[[example]]
name = "read_write_interface"
path = "examples/read_write_interface.rs"
required-features = [
    "std",
    "libpcap",
]

[[example]]
name = "read_write_pcap"
path = "examples/read_write_pcap.rs"
required-features = ["std"]

[[example]]
name = "spoof_http_server"
path = "examples/spoof_http_server.rs"
required-features = [
    "std",
    "libpcap",
]

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

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

[dependencies.deku]
version = "0.20"
features = [
    "alloc",
    "bits",
    "descriptive-errors",
]
default-features = false

[dependencies.hashbrown]
version = "0.17"

[dependencies.pcap-file]
version = "2.0"
optional = true

[dependencies.pnet]
version = "0.35"
optional = true

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

[dev-dependencies.hexlit]
version = "0.5.5"

[dev-dependencies.rstest]
version = "0.26"