-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
72 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[package] | ||
name = "hyper-proxy2" | ||
version = "0.1.0" | ||
authors = ["Natsuki Ikeguchi <[email protected]>"] | ||
authors = ["MetalBear Tech LTD <[email protected]>"] | ||
description = "A proxy connector for Hyper-based applications" | ||
documentation = "https://docs.rs/hyper-proxy2" | ||
repository = "https://github.com/siketyan/hyper-proxy2" | ||
documentation = "https://docs.rs/hyper-http-proxy" | ||
repository = "https://github.com/metalbear-co/hyper-http-proxy" | ||
readme = "README.md" | ||
keywords = ["hyper", "proxy", "tokio", "ssl"] | ||
categories = ["web-programming::http-client", "asynchronous", "authentication"] | ||
|
@@ -15,39 +15,43 @@ rust-version = "1.70.0" | |
[dependencies] | ||
tokio = { version = "1.35", features = ["io-std", "io-util"] } | ||
hyper = { version = "1.0", features = ["client"] } | ||
hyper-util = { version = "0.1.2", features = ["client", "client-legacy", "tokio"] } | ||
hyper-util = { version = "0.1", features = ["client", "client-legacy", "tokio"] } | ||
|
||
tower-service = "0.3.2" | ||
http = "1.0" | ||
futures-util = { version = "0.3.30", default-features = false } | ||
tower-service = "0.3" | ||
http = "1" | ||
futures-util = { version = "0.3", default-features = false } | ||
bytes = "1.5" | ||
pin-project-lite = "0.2.13" | ||
hyper-tls = { version = "0.6.0", optional = true } | ||
tokio-native-tls = { version = "0.3.1", optional = true } | ||
native-tls = { version = "0.2.11", optional = true } | ||
openssl = { version = "0.10.62", optional = true } | ||
tokio-openssl = { version = "0.6.4", optional = true } | ||
tokio-rustls = { version = "0.26", optional = true } | ||
pin-project-lite = "0.2" | ||
hyper-tls = { version = "0.6", optional = true } | ||
tokio-native-tls = { version = "0.3", optional = true } | ||
native-tls = { version = "0.2", optional = true } | ||
tokio-rustls = { version = "0.26", optional = true, default-features = false} | ||
hyper-rustls = { version = "0.27.0", optional = true } | ||
|
||
webpki = { version = "0.22", optional = true } | ||
rustls-webpki = { version = "0.102.4", optional = true } | ||
rustls-native-certs = { version = "0.7.0", optional = true } | ||
webpki-roots = { version = "0.26.0", optional = true } | ||
headers = "0.4" | ||
|
||
[dev-dependencies] | ||
tokio = { version = "1.35", features = ["full"] } | ||
hyper = { version = "1.0", features = ["client", "http1"] } | ||
hyper-util = { version = "0.1.2", features = ["client", "client-legacy", "http1", "tokio"] } | ||
http-body-util = "0.1.0" | ||
futures = "0.3.30" | ||
hyper-util = { version = "0.1", features = ["client", "client-legacy", "http1", "tokio"] } | ||
http-body-util = "0.1" | ||
futures = "0.3" | ||
|
||
[features] | ||
openssl-tls = ["openssl", "tokio-openssl"] | ||
tls = ["tokio-native-tls", "hyper-tls", "native-tls"] | ||
# note that `rustls-base` is not a valid feature on its own - it will configure rustls without root | ||
# certificates! | ||
rustls-base = ["tokio-rustls", "hyper-rustls", "webpki"] | ||
rustls = ["rustls-base", "rustls-native-certs", "hyper-rustls/native-tokio"] | ||
rustls-webpki = ["rustls-base", "webpki-roots", "hyper-rustls/webpki-tokio"] | ||
default = ["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 = ["rustls-tls-webpki-roots"] | ||
rustls-tls-manual-roots = ["__rustls"] | ||
rustls-tls-webpki-roots = ["dep:webpki-roots", "__rustls"] | ||
rustls-tls-native-roots = ["dep:rustls-native-certs", "__rustls"] | ||
|
||
__tls = [] | ||
|
||
# Enables common rustls code. | ||
# Equivalent to rustls-tls-manual-roots but shorter :) | ||
__rustls = ["dep:hyper-rustls", "dep:tokio-rustls", "__tls"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters