zenith-net 0.1.0

Zenith 网络地址与传输层抽象:L2-L4 协议解析、TCP/UDP/QUIC 状态机、来源准入引擎、单队列 Worker 数据面循环
# 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.97.1"
name = "zenith-net"
version = "0.1.0"
authors = ["Zenith Developers <2098175794@qq.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zenith 网络地址与传输层抽象:L2-L4 协议解析、TCP/UDP/QUIC 状态机、来源准入引擎、单队列 Worker 数据面循环"
homepage = "https://www.mosit.cn"
documentation = "https://docs.rs/zenith-stack"
readme = "README.md"
keywords = [
    "zenith",
    "network",
    "protocol",
    "tcp",
    "udp",
]
categories = [
    "network-programming",
    "parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://gitcode.com/Mosi45-git/Zenith"
resolver = "2"

[features]
default = ["linux"]
linux = [
    "dep:zenith-linux",
    "dep:zenith-ebpf",
]

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

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

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

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

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

[dependencies.rustc-hash]
version = "1.1"

[dependencies.rustls]
version = "0.23"
features = [
    "std",
    "logging",
    "tls12",
    "ring",
]
default-features = false

[dependencies.smallvec]
version = "1.13"

[dependencies.thiserror]
version = "1"

[dependencies.tracing]
version = "0.1"

[dependencies.zenith-foundation]
version = "0.1.0"

[dependencies.zenith-tls]
version = "0.1.0"

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

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

[dev-dependencies.ring]
version = "0.17"

[target.'cfg(target_os = "linux")'.dependencies.zenith-ebpf]
version = "0.1.0"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.zenith-linux]
version = "0.1.0"
optional = true

[lints.clippy]
all = "warn"
correctness = "deny"
perf = "deny"
suspicious = "deny"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe_code = "deny"