binger-udp 0.1.0

Cross-platform, batch-native UDP I/O with platform-optimal syscalls (sendmmsg/recvmmsg on Linux, GSO/GRO, and more)
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 = "2021"
rust-version = "1.75"
name = "binger-udp"
version = "0.1.0"
exclude = [
    "docs/",
    "examples/",
    "tests/",
    ".github/",
    "CHANGELOG.md",
    "CONTRIBUTING.md",
    "README_CN.md",
]
description = "Cross-platform, batch-native UDP I/O with platform-optimal syscalls (sendmmsg/recvmmsg on Linux, GSO/GRO, and more)"
homepage = "https://github.com/wii1980/binger-udp"
documentation = "https://docs.rs/binger-udp"
readme = "README.md"
keywords = [
    "udp",
    "batch",
    "sendmmsg",
    "recvmmsg",
    "networking",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/wii1980/binger-udp"

[[bench]]
name = "batch_bench"
harness = false

[dependencies.bytes]
version = "1"
features = ["serde"]

[dependencies.crossbeam-queue]
version = "0.3"

[dependencies.libc]
version = "0.2"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "rt",
]
optional = true

[dev-dependencies.clap]
version = ">=4.0, <4.6"

[dev-dependencies.clap_lex]
version = ">=1.0, <1.1"

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

[dev-dependencies.rayon-core]
version = ">=1.0, <1.13"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[features]
busy-poll = []
default = ["tokio"]
gro = []
gso = []
metrics = []
miri-safe = []
pacing = []
pktinfo = []
timestamping = []
tokio = ["dep:tokio"]

[target."cfg(target_os = \"linux\")".dependencies]

[target."cfg(target_os = \"macos\")".dependencies]

[target."cfg(target_os = \"windows\")".dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_Networking_WinSock",
    "Win32_System_IO",
]

[lints.clippy]
borrow_as_ptr = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
ptr_as_ptr = "allow"
ptr_cast_constness = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "allow"