# 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 = "snare"
version = "1.3.0"
authors = ["Bowan Foryt <bowan@valstad.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Network communication testing library for rust"
readme = "README.md"
keywords = [
    "network",
    "testing",
    "mock",
]
categories = ["development-tools::testing"]
license = "Apache-2.0"
repository = "https://github.com/valstad-shipworks/snare"

[features]
default = []
mio-compat = ["mio"]
shim = []

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

[[test]]
name = "cyclic"
path = "tests/cyclic.rs"
required-features = ["shim"]

[[test]]
name = "mio_compat"
path = "tests/mio_compat.rs"
required-features = [
    "shim",
    "mio-compat",
]

[[test]]
name = "packet_count"
path = "tests/packet_count.rs"
required-features = ["shim"]

[[test]]
name = "pcapng"
path = "tests/pcapng.rs"
required-features = ["shim"]

[[test]]
name = "policy"
path = "tests/policy.rs"
required-features = [
    "shim",
    "mio-compat",
]

[[test]]
name = "proper_response"
path = "tests/proper_response.rs"
required-features = ["shim"]

[[test]]
name = "quiesce"
path = "tests/quiesce.rs"
required-features = [
    "shim",
    "mio-compat",
]

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

[[test]]
name = "std_parity_shim"
path = "tests/std_parity_shim.rs"
required-features = ["shim"]

[[test]]
name = "thread_tracking"
path = "tests/thread_tracking.rs"
required-features = ["shim"]

[dependencies.anymap2]
version = "0.13.0"

[dependencies.event-listener]
version = "5.4.1"
features = ["std"]

[dependencies.mio]
version = "1"
features = [
    "os-poll",
    "os-ext",
    "net",
]
optional = true

[dependencies.parking_lot]
version = "0.12.5"

[dev-dependencies.bincode]
version = "2.0.1"
