# 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.85"
name = "rquest"
version = "5.2.0"
authors = ["0x676e67 <gngppz@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A blazing-fast Rust HTTP Client with TLS fingerprint"
documentation = "https://docs.rs/rquest"
readme = "README.md"
keywords = [
    "http",
    "client",
    "websocket",
    "ja3",
    "ja4",
]
categories = ["web-programming::http-client"]
license = "Apache-2.0"
repository = "https://github.com/0x676e67/rquest"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[features]
apple-network-device-binding = ["dep:libc"]
brotli = [
    "dep:async-compression",
    "async-compression?/brotli",
    "dep:tokio-util",
]
charset = ["dep:encoding_rs"]
cookies = [
    "cookies-abstract",
    "dep:cookie_store",
]
cookies-abstract = ["dep:cookie_crate"]
cookies-multiple = []
cookies-preserve-order = ["cookie_store/preserve_order"]
default = [
    "webpki-roots",
    "charset",
    "macos-system-configuration",
]
deflate = [
    "dep:async-compression",
    "async-compression?/zlib",
    "dep:tokio-util",
]
full = [
    "json",
    "stream",
    "cookies",
    "socks",
    "gzip",
    "brotli",
    "zstd",
    "deflate",
]
gzip = [
    "dep:async-compression",
    "async-compression?/gzip",
    "dep:tokio-util",
]
hickory-dns = ["dep:hickory-resolver"]
http2-tracing = ["hyper2/http2-tracing"]
internal_proxy_sys_no_cache = []
json = ["dep:serde_json"]
macos-system-configuration = ["dep:system-configuration"]
multipart = ["dep:mime_guess"]
native-roots = ["dep:rustls-native-certs"]
socks = ["dep:tokio-socks"]
stream = [
    "tokio/fs",
    "dep:tokio-util",
]
webpki-roots = ["dep:webpki-root-certs"]
websocket = ["dep:tokio-tungstenite"]
zstd = [
    "dep:async-compression",
    "async-compression?/zstd",
    "dep:tokio-util",
]

[lib]
name = "rquest"
path = "src/lib.rs"
doctest = false

[[example]]
name = "client_chain"
path = "examples/client_chain.rs"
required-features = ["apple-network-device-binding"]

[[example]]
name = "connect_via_lower_priority_tokio_runtime"
path = "examples/connect_via_lower_priority_tokio_runtime.rs"
required-features = ["full"]

[[example]]
name = "emulation_provider"
path = "examples/emulation_provider.rs"
required-features = ["full"]

[[example]]
name = "form"
path = "examples/form.rs"

[[example]]
name = "headers_order"
path = "examples/headers_order.rs"
required-features = ["cookies"]

[[example]]
name = "hickory_dns"
path = "examples/hickory_dns.rs"
required-features = ["hickory-dns"]

[[example]]
name = "http1_websocket"
path = "examples/http1_websocket.rs"
required-features = [
    "websocket",
    "futures-util/std",
]

[[example]]
name = "http2_websocket"
path = "examples/http2_websocket.rs"
required-features = [
    "websocket",
    "http2-tracing",
    "futures-util/std",
]

[[example]]
name = "json_dynamic"
path = "examples/json_dynamic.rs"
required-features = ["json"]

[[example]]
name = "json_typed"
path = "examples/json_typed.rs"
required-features = ["json"]

[[example]]
name = "request_with_interface"
path = "examples/request_with_interface.rs"
required-features = [
    "full",
    "apple-network-device-binding",
]

[[example]]
name = "request_with_local_address"
path = "examples/request_with_local_address.rs"
required-features = ["full"]

[[example]]
name = "request_with_proxy"
path = "examples/request_with_proxy.rs"
required-features = ["full"]

[[example]]
name = "request_with_redirect"
path = "examples/request_with_redirect.rs"
required-features = ["full"]

[[example]]
name = "request_with_version"
path = "examples/request_with_version.rs"
required-features = ["full"]

[[example]]
name = "set_cert_store"
path = "examples/set_cert_store.rs"
required-features = [
    "native-roots",
    "webpki-roots",
]

[[example]]
name = "set_cookie_provider"
path = "examples/set_cookie_provider.rs"
required-features = ["cookies"]

[[example]]
name = "set_cookies"
path = "examples/set_cookies.rs"
required-features = ["cookies"]

[[example]]
name = "set_headers"
path = "examples/set_headers.rs"

[[example]]
name = "set_interface"
path = "examples/set_interface.rs"
required-features = [
    "brotli",
    "apple-network-device-binding",
]

[[example]]
name = "set_local_address"
path = "examples/set_local_address.rs"
required-features = ["brotli"]

[[example]]
name = "set_proxies"
path = "examples/set_proxies.rs"
required-features = [
    "socks",
    "brotli",
]

[[example]]
name = "tls_info"
path = "examples/tls_info.rs"

[[example]]
name = "tor_socks"
path = "examples/tor_socks.rs"
required-features = ["socks"]

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

[[test]]
name = "brotli"
path = "tests/brotli.rs"
required-features = [
    "brotli",
    "stream",
]

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

[[test]]
name = "client_update"
path = "tests/client_update.rs"
required-features = ["full"]

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

[[test]]
name = "cookie"
path = "tests/cookie.rs"
required-features = [
    "cookies",
    "cookies-multiple",
    "cookies-preserve-order",
]

[[test]]
name = "deflate"
path = "tests/deflate.rs"
required-features = [
    "deflate",
    "stream",
]

[[test]]
name = "gzip"
path = "tests/gzip.rs"
required-features = [
    "gzip",
    "stream",
]

[[test]]
name = "multipart"
path = "tests/multipart.rs"
required-features = [
    "multipart",
    "stream",
]

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

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

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

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

[[test]]
name = "zstd"
path = "tests/zstd.rs"
required-features = [
    "zstd",
    "stream",
]

[dependencies.antidote]
version = "1"

[dependencies.arc-swap]
version = "1.7.0"

[dependencies.async-compression]
version = "0.4.21"
features = ["tokio"]
optional = true
default-features = false

[dependencies.base64]
version = "0.22"

[dependencies.boring2]
version = "4.15.11"
features = [
    "pq-experimental",
    "cert-compression",
]

[dependencies.bytes]
version = "1.10.1"

[dependencies.cookie_crate]
version = "0.18"
optional = true
package = "cookie"

[dependencies.cookie_store]
version = "0.21"
optional = true

[dependencies.encoding_rs]
version = "0.8"
optional = true

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

[dependencies.hickory-resolver]
version = "0.25.1"
optional = true

[dependencies.http]
version = "1"

[dependencies.http-body]
version = "1"

[dependencies.http-body-util]
version = "0.1"

[dependencies.hyper2]
version = "1.5.5"
features = [
    "http1",
    "http2",
    "client",
]

[dependencies.ipnet]
version = "2.11.0"

[dependencies.linked_hash_set]
version = "0.1"

[dependencies.log]
version = "0.4.27"

[dependencies.lru]
version = "0.13"
default-features = false

[dependencies.mime]
version = "0.3.17"

[dependencies.mime_guess]
version = "2.0"
optional = true
default-features = false

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

[dependencies.pin-project-lite]
version = "0.2.0"

[dependencies.rustls-native-certs]
version = "0.8.0"
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.serde_urlencoded]
version = "0.7.1"

[dependencies.socket2]
version = "0.5.8"
features = ["all"]

[dependencies.sync_wrapper]
version = "1.0"
features = ["futures"]

[dependencies.tokio]
version = "1"
features = [
    "net",
    "time",
    "rt",
]
default-features = false

[dependencies.tokio-boring2]
version = "4.15.11"
features = ["pq-experimental"]

[dependencies.tokio-socks]
version = "0.5.2"
optional = true

[dependencies.tokio-tungstenite]
version = "0.26.2"
features = ["handshake"]
optional = true
default-features = false

[dependencies.tokio-util]
version = "0.7.0"
features = [
    "codec",
    "io",
]
optional = true
default-features = false

[dependencies.tower]
version = "0.5.2"
features = [
    "timeout",
    "util",
]
default-features = false

[dependencies.tower-service]
version = "0.3"

[dependencies.typed-builder]
version = "0.21.0"

[dependencies.url]
version = "2.5"

[dependencies.webpki-root-certs]
version = "0.26.0"
optional = true

[dev-dependencies.brotli]
version = "7.0.0"

[dev-dependencies.doc-comment]
version = "0.3"

[dev-dependencies.env_logger]
version = "0.11.6"

[dev-dependencies.futures]
version = "0.3.0"
features = ["std"]
default-features = false

[dev-dependencies.hyper]
version = "1.1.0"
features = [
    "http1",
    "http2",
    "client",
    "server",
]
default-features = false

[dev-dependencies.hyper-util]
version = "0.1.10"
features = [
    "http1",
    "http2",
    "client",
    "client-legacy",
    "server-auto",
    "tokio",
]

[dev-dependencies.libc]
version = "0.2"

[dev-dependencies.libflate]
version = "2.0.0"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt-multi-thread",
]
default-features = false

[dev-dependencies.tower]
version = "0.5.2"
features = ["limit"]
default-features = false

[dev-dependencies.tracing]
version = "0.1"

[dev-dependencies.tracing-subscriber]
version = "0.3.19"

[dev-dependencies.zstd]
version = "0.13"

[target.'cfg(any(target_os = "ios", target_os = "visionos", target_os = "macos", target_os = "tvos", target_os = "watchos"))'.dependencies.libc]
version = "0.2"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.system-configuration]
version = "0.6.0"
optional = true

[target."cfg(windows)".dependencies.windows-registry]
version = "0.5.0"
