[package]
edition = "2024"
rust-version = "1.88"
name = "actix-proxy-protocol"
version = "0.1.0"
authors = ["Rob Ede <robjtede@icloud.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Actix integration for the PROXY protocol"
readme = "README.md"
keywords = [
"proxy",
"protocol",
"network",
"haproxy",
"tcp",
]
categories = [
"network-programming",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/robjtede/actix-web-lab"
resolver = "2"
[package.metadata.cargo_check_external_types]
allowed_external_types = [
"actix_rt::*",
"actix_service::*",
"actix_utils::*",
"proxyproto::*",
"tokio::*",
]
[lib]
name = "actix_proxy_protocol"
path = "src/lib.rs"
[[example]]
name = "haproxy-v2-backend"
path = "examples/haproxy-v2-backend.rs"
[[example]]
name = "proxy-server"
path = "examples/proxy-server.rs"
[dependencies.actix-rt]
version = "2.11"
[dependencies.actix-service]
version = "2"
[dependencies.actix-utils]
version = "3"
[dependencies.futures-core]
version = "0.3.17"
features = ["std"]
default-features = false
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.proxyproto]
version = "0.2"
features = ["tokio"]
[dependencies.tokio]
version = "1.13.1"
features = [
"sync",
"io-util",
]
[dev-dependencies.actix-codec]
version = "0.5"
[dev-dependencies.actix-http]
version = "3"
[dev-dependencies.actix-rt]
version = "2.6"
[dev-dependencies.actix-server]
version = "2"
[dev-dependencies.bytes]
version = "1"
[dev-dependencies.futures-util]
version = "0.3.7"
features = [
"sink",
"async-await-macro",
]
default-features = false
[dev-dependencies.tokio]
version = "1.38.2"
features = [
"io-util",
"rt-multi-thread",
"macros",
"fs",
]
[dev-dependencies.tracing]
version = "0.1.30"
features = ["log"]
default-features = false
[dev-dependencies.tracing-subscriber]
version = "0.3"
[lints.rust]
future_incompatible = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
[lints.rust.nonstandard_style]
level = "deny"
priority = 5
[lints.rust.rust_2018_idioms]
level = "deny"
priority = 10