# 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 = "nex"
version = "0.26.0"
authors = ["shellrow <shellrow@foctal.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform networking library in Rust"
readme = "README.md"
keywords = [
    "network",
    "packet",
]
categories = ["network-programming"]
license = "MIT"
repository = "https://github.com/shellrow/nex"
resolver = "2"

[features]
pcap = ["nex-datalink/pcap"]
serde = [
    "nex-core/serde",
    "nex-packet/serde",
    "nex-datalink/serde",
]

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

[dependencies.nex-core]
version = "0.26.0"

[dependencies.nex-datalink]
version = "0.26.0"

[dependencies.nex-packet]
version = "0.26.0"

[dependencies.nex-socket]
version = "0.26.0"

[dev-dependencies.bytes]
version = "1"

[dev-dependencies.futures]
version = "0.3"

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "signal",
    "macros",
]
