[dependencies.fastrand]
version = "2"
[dependencies.futures-util]
default-features = false
version = "0.3"
[dependencies.hyper]
features = ["full", "server", "http1", "http2"]
version = "1"
[dependencies.hyper-rustls]
default-features = false
features = ["native-tokio", "rustls-native-certs", "ring", "http1", "http2", "tls12", "logging"]
optional = true
version = "0.27"
[dependencies.hyper-util]
default-features = true
features = ["tokio", "http1", "http2", "client-legacy"]
optional = true
version = "0.1"
[dependencies.local-ip-address]
version = "0.6.5"
[dependencies.percent-encoding]
version = "2"
[dependencies.reqwest]
default-features = false
features = ["rustls-tls", "charset", "http2", "macos-system-configuration", "stream"]
optional = true
version = "0.12"
[dependencies.salvo_core]
default-features = false
version = "0.85.0"
[dependencies.tokio]
version = "1"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.salvo_core]
default-features = false
features = ["http1", "server", "test"]
version = "0.85.0"
[features]
default = ["ring", "hyper-client", "unix-sock-client"]
full = ["ring", "hyper-client", "reqwest-client", "unix-sock-client"]
hyper-client = ["dep:hyper-util", "dep:hyper-rustls"]
reqwest-client = ["dep:reqwest"]
ring = ["hyper-rustls/ring"]
unix-sock-client = []
[lib]
name = "salvo_proxy"
path = "src/lib.rs"
[lints.clippy]
await_holding_lock = "warn"
dbg_macro = "warn"
empty_enum = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exit = "warn"
filter_map_next = "warn"
fn_params_excessive_bools = "warn"
future_not_send = "warn"
if_let_mutex = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
inefficient_to_string = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_let_else = "warn"
mem_forget = "warn"
must_use_candidate = "warn"
needless_borrow = "warn"
needless_continue = "warn"
needless_pass_by_ref_mut = "warn"
option_option = "warn"
redundant_clone = "warn"
ref_option = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_self_not_must_use = "warn"
single_match_else = "warn"
str_to_string = "warn"
suboptimal_flops = "warn"
todo = "warn"
trivially_copy_pass_by_ref = "warn"
type_complexity = "allow"
uninlined_format_args = "warn"
unnested_or_patterns = "warn"
unused_self = "warn"
unwrap_used = "warn"
use_self = "warn"
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "deny"
unsafe_code = "forbid"
[lints.rustdoc]
broken_intra_doc_links = "warn"
[package]
authors = ["Chrislearn Young <chris@acroidea.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["web-programming::http-server", "web-programming::websocket", "network-programming", "asynchronous"]
description = """
HTTP proxy support for the Salvo web server framework. Provides flexible proxy middleware
for forwarding requests to upstream servers.
"""
edition = "2024"
homepage = "https://salvo.rs"
keywords = ["http", "async", "web", "framework", "server"]
license = "MIT OR Apache-2.0"
name = "salvo-proxy"
readme = "README.md"
repository = "https://github.com/salvo-rs/salvo"
resolver = "2"
rust-version = "1.85"
version = "0.85.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]