[package]
edition = "2024"
rust-version = "1.95"
name = "virtual-socket"
version = "0.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Demultiplex a single tokio UdpSocket into multiple virtual UDP sockets sharing one physical bind."
readme = "README.md"
keywords = [
"udp",
"socket",
"demux",
"multiplex",
"tokio",
]
categories = [
"network-programming",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/canmi21/vane"
[lib]
name = "virtual_socket"
path = "src/lib.rs"
[dependencies.bytes]
version = "1"
[dependencies.parking_lot]
version = "0.12"
[dependencies.tokio]
version = "1"
features = ["net"]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.tokio]
version = "1"
features = [
"net",
"macros",
"rt",
"rt-multi-thread",
"time",
]
[lints.clippy]
cognitive_complexity = "warn"
doc_markdown = "allow"
similar_names = "allow"
unnecessary_wraps = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unreachable_pub = "warn"
unsafe_code = "deny"