[dependencies.anyhow]
optional = true
version = "1.0.100"
[dependencies.async-stream]
version = "0.3.6"
[dependencies.async-trait]
optional = true
version = "0.1.89"
[dependencies.bytes]
version = "1.10.1"
[dependencies.futures-util]
version = "0.3.31"
[dependencies.http]
optional = true
version = "1.3.1"
[dependencies.http-body-util]
optional = true
version = "0.1.3"
[dependencies.hyper]
features = ["client", "http1", "http2"]
version = "1.7.0"
[dependencies.hyper-tls]
optional = true
version = "0.6.0"
[dependencies.hyper-util]
features = ["client-legacy", "tokio"]
version = "0.1.17"
[dependencies.hysteria2]
optional = true
version = "0.1.6"
[dependencies.pastey]
optional = true
version = "0.1"
[dependencies.reqwest]
features = ["json", "stream"]
version = "0.12.23"
[dependencies.reqwest-middleware]
optional = true
version = "0.4.2"
[dependencies.shadowsocks]
features = ["stream-cipher", "aead-cipher", "aead-cipher-2022"]
optional = true
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
features = ["net", "io-util"]
version = "1.47.1"
[dependencies.tokio-util]
features = ["compat"]
version = "0.7.16"
[dependencies.tower]
version = "0.5"
[dependencies.uri_to_host_port]
version = "0.1.4"
[dev-dependencies.futures]
version = "0.3.31"
[dev-dependencies.log]
version = "0.4.28"
[dev-dependencies.log_init]
version = "0.1.25"
[dev-dependencies.percent-encoding]
version = "2.3.2"
[dev-dependencies.regex]
version = "1.11.3"
[dev-dependencies.rustls]
features = ["aws-lc-rs"]
version = "0.23.32"
[dev-dependencies.static_init]
version = "1.0.4"
[dev-dependencies.tokio]
features = ["macros", "rt", "rt-multi-thread", "time", "sync"]
version = "1.47.1"
[dev-dependencies.tower-reqwest]
version = "0.5.3"
[dev-dependencies.url_fmt]
version = "0.1.3"
[features]
default = ["reqwest"]
full = ["reqwest", "shadowsocks", "hysteria2"]
hysteria2 = ["protocol", "dep:hysteria2"]
protocol = ["dep:pastey"]
reqwest = ["dep:anyhow", "dep:reqwest-middleware", "dep:async-trait", "dep:http-body-util", "dep:http", "dep:hyper-tls"]
shadowsocks = ["protocol", "dep:shadowsocks"]
[lib]
name = "reqwest_proxy"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "Seamlessly proxy reqwest traffic through Shadowsocks, Hysteria2, and more. / 通过 Shadowsocks、Hysteria2 等多种协议无缝代理 reqwest 流量。"
edition = "2024"
homepage = "https://github.com/i18n-site/rust/tree/dev/reqwest_proxy"
keywords = ["reqwest", "proxy", "middleware", "shadowsocks", "hysteria2"]
license = "MulanPSL-2.0"
name = "reqwest_proxy"
readme = "README.md"
repository = "https://github.com/i18n-site/rust.git"
resolver = "2"
version = "0.1.7"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "main"
path = "tests/main.rs"