[package]
edition = "2024"
name = "switchy_tcp"
version = "0.2.0"
authors = ["Braden Steffaniak"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Switchy TCP Networking package"
readme = "README.md"
keywords = [
"network",
"networking",
"tcp",
]
categories = ["network-programming"]
license = "MPL-2.0"
repository = "https://github.com/MoosicBox/MoosicBox"
[package.metadata]
examples = true
[package.metadata.workspaces]
group = "switchy"
[features]
default = [
"simulator",
"tokio",
]
fail-on-warnings = ["switchy_async/fail-on-warnings"]
simulator = [
"dep:bytes",
"dep:flume",
"dep:scoped-tls",
"switchy_async/simulator",
]
tokio = ["switchy_async/tokio"]
[lib]
name = "switchy_tcp"
path = "src/lib.rs"
[[test]]
name = "channel_comparison"
path = "tests/channel_comparison.rs"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.bytes]
version = "1.11.1"
optional = true
[dependencies.flume]
version = "0.12.0"
optional = true
[dependencies.log]
version = "0.4.29"
features = ["release_max_level_trace"]
[dependencies.paste]
version = "1.0.15"
[dependencies.scoped-tls]
version = "1.0.1"
optional = true
[dependencies.switchy_async]
version = "0.2.0"
features = [
"io",
"macros",
"sync",
"time",
"util",
]
default-features = false
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.52.3"
features = ["net"]