# 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"
name = "catcher-http"
version = "0.3.16"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP client for catcher — resilient transport with retry, circuit breaker, priority scheduling"
readme = "README.md"
license = "MIT"
repository = "https://github.com/eric8810/catcher"

[features]
default = [
    "rustls-tls",
    "hickory-dns",
]
hickory-dns = [
    "catcher-dns/hickory-dns",
    "catcher-dns/reqwest-resolver",
]
napi = [
    "dep:napi",
    "dep:napi-derive",
]
native-tls = ["reqwest/native-tls"]
rustls-tls = [
    "reqwest/rustls",
    "dep:rustls",
    "dep:rustls-pki-types",
    "dep:sha2",
    "dep:webpki-roots",
]
system-proxy = ["catcher-dns/system-proxy"]

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

[[test]]
name = "clash_real_e2e"
path = "tests/clash_real_e2e.rs"

[[test]]
name = "local_proxy_test"
path = "tests/local_proxy_test.rs"

[[test]]
name = "proxy_dns_behavior_test"
path = "tests/proxy_dns_behavior_test.rs"

[[test]]
name = "strict_network_changed_test"
path = "tests/strict_network_changed_test.rs"

[[test]]
name = "system_proxy_e2e"
path = "tests/system_proxy_e2e.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.backon]
version = "1"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.catcher-core]
version = "0.3.16"

[dependencies.catcher-dns]
version = "0.3.16"
default-features = false

[dependencies.http]
version = "1"

[dependencies.napi]
version = "2"
features = [
    "napi4",
    "tokio_rt",
    "serde-json",
]
optional = true
default-features = false

[dependencies.napi-derive]
version = "2"
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.reqwest]
version = "0.13"
features = [
    "http2",
    "gzip",
    "brotli",
    "deflate",
    "stream",
    "charset",
    "query",
    "form",
    "socks",
]
default-features = false

[dependencies.reqwest-middleware]
version = "0.5"

[dependencies.reqwest-retry]
version = "0.9"

[dependencies.retry-policies]
version = "0.5"

[dependencies.rmp-serde]
version = "1"

[dependencies.rustls]
version = "0.23"
features = [
    "aws_lc_rs",
    "logging",
    "std",
    "tls12",
]
optional = true
default-features = false

[dependencies.rustls-pki-types]
version = "1"
features = ["std"]
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "net",
    "io-util",
    "macros",
]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"

[dependencies.webpki-roots]
version = "0.26"
optional = true

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.wiremock]
version = "0.6"
