[package]
edition = "2024"
rust-version = "1.91"
name = "tcpbin"
version = "0.1.2"
build = false
include = [
"**/*.rs",
"Cargo.toml",
"README.md",
"LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Simple library/CLI providing TCP echo server"
readme = "README.md"
license = "BSL-1.0"
repository = "https://github.com/DoumanAsh/tcpbin"
[package.metadata.docs.rs]
features = ["tokio"]
[features]
cli = [
"arg",
"tokio?/macros",
]
tokio = ["dep:tokio"]
tracing = ["dep:tracing"]
[lib]
name = "tcpbin"
path = "src/lib.rs"
[[bin]]
name = "tcpbin"
path = "src/main.rs"
required-features = ["cli"]
[[test]]
name = "tests"
path = "tests/tests.rs"
[dependencies.arg]
version = "0.4"
features = ["std"]
optional = true
[dependencies.ha_proxy_protocol]
version = "0.2.3"
[dependencies.tokio]
version = "1"
features = [
"net",
"time",
"io-util",
"rt",
]
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
debug = 0
strip = true