[package]
edition = "2024"
name = "axum-reverse-proxy"
version = "1.1.2"
authors = ["Tom Lubenow"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A flexible and efficient reverse proxy implementation for Axum web applications"
documentation = "https://docs.rs/axum-reverse-proxy"
readme = "README.md"
keywords = [
"axum",
"proxy",
"reverse-proxy",
"http",
"web",
]
categories = [
"web-programming::http-server",
"network-programming",
]
license = "MIT"
repository = "https://github.com/tom-lubenow/axum-reverse-proxy"
[features]
default = ["tls"]
dns = ["hickory-resolver"]
full = [
"tls",
"dns",
]
native-tls = [
"hyper-tls",
"dep:native-tls",
"tokio-native-tls",
]
tls = [
"hyper-rustls",
"rustls",
]
[lib]
name = "axum_reverse_proxy"
path = "src/lib.rs"
[[example]]
name = "balanced"
path = "examples/balanced.rs"
required-features = ["tls"]
[[example]]
name = "basic"
path = "examples/basic.rs"
required-features = ["tls"]
[[example]]
name = "benchmark_proxy"
path = "examples/benchmark_proxy.rs"
[[example]]
name = "dangerous_client"
path = "examples/dangerous_client.rs"
required-features = ["tls"]
[[example]]
name = "discoverable"
path = "examples/discoverable.rs"
required-features = ["tls"]
[[example]]
name = "dns_discovery"
path = "examples/dns_discovery.rs"
required-features = [
"tls",
"dns",
]
[[example]]
name = "load_balancing_strategies"
path = "examples/load_balancing_strategies.rs"
required-features = ["tls"]
[[example]]
name = "nested"
path = "examples/nested.rs"
required-features = ["tls"]
[[example]]
name = "retry"
path = "examples/retry.rs"
required-features = ["tls"]
[[example]]
name = "rfc9110_compliance"
path = "examples/rfc9110_compliance.rs"
[[example]]
name = "tower_middleware"
path = "examples/tower_middleware.rs"
required-features = ["tls"]
[[test]]
name = "badssl_integration_test"
path = "tests/badssl_integration_test.rs"
[[test]]
name = "balanced"
path = "tests/balanced.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "dangerous_client_test"
path = "tests/dangerous_client_test.rs"
[[test]]
name = "discoverable_integration_test"
path = "tests/discoverable_integration_test.rs"
[[test]]
name = "discoverable_proxy_test"
path = "tests/discoverable_proxy_test.rs"
[[test]]
name = "discoverable_router"
path = "tests/discoverable_router.rs"
[[test]]
name = "dns_discovery_integration"
path = "tests/dns_discovery_integration.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "headers"
path = "tests/headers.rs"
[[test]]
name = "middleware"
path = "tests/middleware.rs"
[[test]]
name = "retry"
path = "tests/retry.rs"
[[test]]
name = "rfc9110"
path = "tests/rfc9110.rs"
[[test]]
name = "router_ext"
path = "tests/router_ext.rs"
[[test]]
name = "routing"
path = "tests/routing.rs"
[[test]]
name = "service"
path = "tests/service.rs"
[[test]]
name = "streaming"
path = "tests/streaming.rs"
[[test]]
name = "websocket"
path = "tests/websocket.rs"
[[bench]]
name = "proxy_bench"
path = "benches/proxy_bench.rs"
harness = false
[[bench]]
name = "websocket_bench"
path = "benches/websocket_bench.rs"
harness = false
[dependencies.axum]
version = "^0.8"
features = ["ws"]
[dependencies.bytes]
version = "^1.5"
[dependencies.futures-util]
version = "^0.3"
[dependencies.hickory-resolver]
version = "0.25.2"
optional = true
[dependencies.http]
version = "^1.0"
[dependencies.http-body]
version = "^1.0"
[dependencies.http-body-util]
version = "^0.1"
[dependencies.hyper]
version = "^1.0"
features = ["full"]
[dependencies.hyper-rustls]
version = "^0.27"
features = ["webpki-roots"]
optional = true
[dependencies.hyper-tls]
version = "^0.6"
optional = true
[dependencies.hyper-util]
version = "^0.1"
features = [
"client",
"client-legacy",
"http1",
"http2",
"tokio",
]
[dependencies.native-tls]
version = "^0.2"
optional = true
[dependencies.rand]
version = "0.9.1"
[dependencies.rustls]
version = "^0.23"
optional = true
[dependencies.tokio]
version = "^1.45"
features = ["full"]
[dependencies.tokio-native-tls]
version = "^0.3"
optional = true
[dependencies.tokio-tungstenite]
version = "^0.28"
[dependencies.tower]
version = "^0.5"
features = ["full"]
[dependencies.tracing]
version = "^0.1"
[dependencies.url]
version = "^2.5"
[dev-dependencies.async-stream]
version = "^0.3"
[dev-dependencies.criterion]
version = "^0.5"
features = [
"async",
"futures",
]
[dev-dependencies.rcgen]
version = "^0.13"
[dev-dependencies.reqwest]
version = "^0.12"
features = ["json"]
[dev-dependencies.serde_json]
version = "^1.0"
[dev-dependencies.tokio]
version = "^1.45"
features = [
"full",
"test-util",
]
[dev-dependencies.tokio-rustls]
version = "^0.26"
[dev-dependencies.tower-http]
version = "^0.6"
features = ["full"]
[dev-dependencies.tracing-subscriber]
version = "^0.3"
features = ["env-filter"]