172 lines
3.1 KiB
TOML
172 lines
3.1 KiB
TOML
|
|
# 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 = "2021"
|
||
|
|
rust-version = "1.70.0"
|
||
|
|
name = "hyper-http-proxy"
|
||
|
|
version = "1.1.0"
|
||
|
|
authors = ["MetalBear Tech LTD <hi@metalbear.co>"]
|
||
|
|
build = false
|
||
|
|
autolib = false
|
||
|
|
autobins = false
|
||
|
|
autoexamples = false
|
||
|
|
autotests = false
|
||
|
|
autobenches = false
|
||
|
|
description = "A proxy connector for Hyper-based applications"
|
||
|
|
documentation = "https://docs.rs/hyper-http-proxy"
|
||
|
|
readme = "README.md"
|
||
|
|
keywords = [
|
||
|
|
"hyper",
|
||
|
|
"proxy",
|
||
|
|
"tokio",
|
||
|
|
"ssl",
|
||
|
|
]
|
||
|
|
categories = [
|
||
|
|
"web-programming::http-client",
|
||
|
|
"asynchronous",
|
||
|
|
"authentication",
|
||
|
|
]
|
||
|
|
license = "MIT"
|
||
|
|
repository = "https://github.com/metalbear-co/hyper-http-proxy"
|
||
|
|
|
||
|
|
[features]
|
||
|
|
__rustls = [
|
||
|
|
"dep:hyper-rustls",
|
||
|
|
"dep:tokio-rustls",
|
||
|
|
"__tls",
|
||
|
|
]
|
||
|
|
__tls = []
|
||
|
|
default = ["default-tls"]
|
||
|
|
default-tls = ["rustls-tls-native-roots"]
|
||
|
|
native-tls = [
|
||
|
|
"dep:native-tls",
|
||
|
|
"tokio-native-tls",
|
||
|
|
"hyper-tls",
|
||
|
|
"__tls",
|
||
|
|
]
|
||
|
|
native-tls-vendored = [
|
||
|
|
"native-tls",
|
||
|
|
"tokio-native-tls?/vendored",
|
||
|
|
]
|
||
|
|
rustls-tls-native-roots = [
|
||
|
|
"dep:rustls-native-certs",
|
||
|
|
"__rustls",
|
||
|
|
"hyper-rustls/rustls-native-certs",
|
||
|
|
]
|
||
|
|
rustls-tls-webpki-roots = [
|
||
|
|
"dep:webpki-roots",
|
||
|
|
"__rustls",
|
||
|
|
"hyper-rustls/webpki-roots",
|
||
|
|
]
|
||
|
|
|
||
|
|
[lib]
|
||
|
|
name = "hyper_http_proxy"
|
||
|
|
path = "src/lib.rs"
|
||
|
|
|
||
|
|
[[example]]
|
||
|
|
name = "basic"
|
||
|
|
path = "examples/basic.rs"
|
||
|
|
|
||
|
|
[dependencies.bytes]
|
||
|
|
version = "1.5"
|
||
|
|
|
||
|
|
[dependencies.futures-util]
|
||
|
|
version = "0.3"
|
||
|
|
default-features = false
|
||
|
|
|
||
|
|
[dependencies.headers]
|
||
|
|
version = "0.4"
|
||
|
|
|
||
|
|
[dependencies.http]
|
||
|
|
version = "1"
|
||
|
|
|
||
|
|
[dependencies.hyper]
|
||
|
|
version = "1"
|
||
|
|
features = ["client"]
|
||
|
|
|
||
|
|
[dependencies.hyper-rustls]
|
||
|
|
version = "0.27"
|
||
|
|
optional = true
|
||
|
|
default-features = false
|
||
|
|
|
||
|
|
[dependencies.hyper-tls]
|
||
|
|
version = "0.6"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.hyper-util]
|
||
|
|
version = "0.1"
|
||
|
|
features = [
|
||
|
|
"client",
|
||
|
|
"client-legacy",
|
||
|
|
"tokio",
|
||
|
|
]
|
||
|
|
|
||
|
|
[dependencies.native-tls]
|
||
|
|
version = "0.2"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.pin-project-lite]
|
||
|
|
version = "0.2"
|
||
|
|
|
||
|
|
[dependencies.rustls-native-certs]
|
||
|
|
version = "0.7"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.tokio]
|
||
|
|
version = "1.35"
|
||
|
|
features = [
|
||
|
|
"io-std",
|
||
|
|
"io-util",
|
||
|
|
]
|
||
|
|
|
||
|
|
[dependencies.tokio-native-tls]
|
||
|
|
version = "0.3"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.tokio-rustls]
|
||
|
|
version = "0.26"
|
||
|
|
optional = true
|
||
|
|
default-features = false
|
||
|
|
|
||
|
|
[dependencies.tower-service]
|
||
|
|
version = "0.3"
|
||
|
|
|
||
|
|
[dependencies.webpki-roots]
|
||
|
|
version = "0.26"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dev-dependencies.futures]
|
||
|
|
version = "0.3"
|
||
|
|
|
||
|
|
[dev-dependencies.http-body-util]
|
||
|
|
version = "0.1"
|
||
|
|
|
||
|
|
[dev-dependencies.hyper]
|
||
|
|
version = "1.0"
|
||
|
|
features = [
|
||
|
|
"client",
|
||
|
|
"http1",
|
||
|
|
]
|
||
|
|
|
||
|
|
[dev-dependencies.hyper-util]
|
||
|
|
version = "0.1"
|
||
|
|
features = [
|
||
|
|
"client",
|
||
|
|
"client-legacy",
|
||
|
|
"http1",
|
||
|
|
"tokio",
|
||
|
|
]
|
||
|
|
|
||
|
|
[dev-dependencies.tokio]
|
||
|
|
version = "1.35"
|
||
|
|
features = ["full"]
|