# 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.80"
name = "rquest"
version = "1.1.2"
authors = ["0x676e67 <gngppz@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Asynchronous Rust HTTP client with TLS, JA3/JA4, and HTTP2 fingerprint spoof"
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/penumbra-x/rquest"

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

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

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

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

[[example]]
name = "connect_via_lower_priority_tokio_runtime"
path = "examples/connect_via_lower_priority_tokio_runtime.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 = "impersonate"
path = "examples/impersonate.rs"

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

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

[[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_cookie_store"
path = "examples/request_with_cookie_store.rs"
required-features = ["cookies"]

[[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_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_impersonate"
path = "examples/set_impersonate.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[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 = "wasm_simple"
path = "tests/wasm_simple.rs"

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

[dependencies.antidote]
version = "1"

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

[dependencies.async-tungstenite]
version = "0.28.0"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.boring]
version = "4"
features = ["pq-experimental"]
package = "boring2"

[dependencies.boring-sys]
version = "4"
package = "boring-sys2"

[dependencies.brotli]
version = "7"

[dependencies.bytes]
version = "1.0"

[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.flate2]
version = "1"

[dependencies.foreign-types]
version = "0.5.0"

[dependencies.futures-channel]
version = "0.3"

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

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

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

[dependencies.http]
version = "1"

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

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

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

[dependencies.ipnet]
version = "2.10.0"

[dependencies.linked_hash_set]
version = "0.1"

[dependencies.log]
version = "0.4"

[dependencies.lru]
version = "0.12"
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"

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

[dependencies.serde_urlencoded]
version = "0.7.1"

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

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

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

[dependencies.tokio-boring]
version = "4"
package = "tokio-boring2"

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

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

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

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

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

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

[dependencies.url]
version = "2.5"

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

[dependencies.zstd]
version = "0.13"

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

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

[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"

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

[dev-dependencies.num_cpus]
version = "1.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.zstd]
version = "0.13"

[features]
brotli = [
    "dep:async-compression",
    "async-compression?/brotli",
    "dep:tokio-util",
]
charset = ["dep:encoding_rs"]
cookies = [
    "dep:cookie_crate",
    "dep:cookie_store",
]
default = [
    "webpki-roots",
    "charset",
]
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"]
impersonate_settings = []
impersonate_str = []
internal_proxy_sys_no_cache = []
json = ["dep:serde_json"]
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:async-tungstenite",
    "tokio-util/compat",
]
zstd = [
    "dep:async-compression",
    "async-compression?/zstd",
    "dep:tokio-util",
]

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

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