[package]
edition = "2024"
rust-version = "1.88"
name = "proxy-protocol-rs"
version = "0.8.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tokio-native Proxy Protocol v1/v2 listener wrapper"
readme = "README.md"
keywords = [
"proxy-protocol",
"haproxy",
"tokio",
"networking",
]
categories = [
"network-programming",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/michaelklishin/proxy-protocol-rs"
[features]
aws = []
axum = [
"dep:axum",
"dep:tracing",
]
azure = []
default = []
gcp = []
[lib]
name = "proxy_protocol_rs"
path = "src/lib.rs"
[[test]]
name = "proptests"
path = "tests/proptests/main.rs"
[[test]]
name = "unit"
path = "tests/unit/main.rs"
[[bench]]
name = "parse"
path = "benches/parse.rs"
harness = false
[dependencies.axum]
version = "0.8"
optional = true
[dependencies.bitflags]
version = "2"
[dependencies.crc32c]
version = "0.6"
[dependencies.ipnet]
version = "2"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"net",
"io-util",
"time",
"sync",
]
[dependencies.tracing]
version = "0.1"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = [
"net",
"io-util",
"time",
"sync",
"macros",
"rt-multi-thread",
"test-util",
]
[profile.dev]
lto = "off"
debug = "line-tables-only"
split-debuginfo = "unpacked"
[profile.test]
lto = "off"
debug = "line-tables-only"
split-debuginfo = "unpacked"