salvo-proxy 0.89.0

HTTP proxy support for the Salvo web server framework. Provides flexible proxy middleware for forwarding requests to upstream servers.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.89"
name = "salvo-proxy"
version = "0.89.0"
authors = ["chrislearn <chris@acroidea.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
HTTP proxy support for the Salvo web server framework. Provides flexible proxy middleware
for forwarding requests to upstream servers.
"""
homepage = "https://salvo.rs"
readme = "README.md"
keywords = [
    "http",
    "async",
    "web",
    "framework",
    "server",
]
categories = [
    "web-programming::http-server",
    "web-programming::websocket",
    "network-programming",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/salvo-rs/salvo"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
aws-lc-rs = [
    "hyper-rustls?/aws-lc-rs",
    "reqwest?/rustls",
]
default = [
    "aws-lc-rs",
    "hyper-client",
    "unix-sock-client",
]
full = [
    "aws-lc-rs",
    "hyper-client",
    "reqwest-client",
    "unix-sock-client",
]
hyper-client = [
    "dep:hyper-util",
    "dep:hyper-rustls",
]
reqwest-client = ["dep:reqwest"]
ring = [
    "hyper-rustls?/ring",
    "reqwest?/rustls-no-provider",
    "rustls",
    "rustls/ring",
]
system-proxy = [
    "reqwest?/system-proxy",
    "hyper-util?/client-proxy-system",
]
unix-sock-client = []

[lib]
name = "salvo_proxy"
path = "src/lib.rs"

[dependencies.fastrand]
version = "2"

[dependencies.futures-util]
version = "0.3"
default-features = false

[dependencies.hyper]
version = "1"
features = [
    "full",
    "server",
    "http1",
    "http2",
]

[dependencies.hyper-rustls]
version = "0.27"
features = [
    "native-tokio",
    "rustls-native-certs",
    "http1",
    "http2",
    "tls12",
    "logging",
]
optional = true
default-features = false

[dependencies.hyper-util]
version = "0.1"
features = [
    "tokio",
    "http1",
    "http2",
    "client-legacy",
]
optional = true
default-features = true

[dependencies.local-ip-address]
version = "0.6.5"

[dependencies.percent-encoding]
version = "2"

[dependencies.reqwest]
version = "0.13"
features = [
    "charset",
    "http2",
    "stream",
]
optional = true
default-features = false

[dependencies.rustls]
version = "0.23"
optional = true
default-features = false

[dependencies.salvo_core]
version = "0.89.0"
default-features = false

[dependencies.tokio]
version = "1"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.rustls]
version = "0.23"
features = ["aws-lc-rs"]
default-features = false

[dev-dependencies.salvo_core]
version = "0.89.0"
features = [
    "http1",
    "server",
    "test",
]
default-features = false

[lints.clippy]
await_holding_lock = "warn"
dbg_macro = "warn"
empty_enums = "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"