[dependencies.antidote]
version = "1"
[dependencies.atomic-waker]
version = "1.1.2"
[dependencies.base64]
version = "0.22"
[dependencies.boring2]
features = ["pq-experimental"]
version = "5.0.0-alpha.1"
[dependencies.brotli]
version = "8.0.1"
[dependencies.bytes]
version = "1.2"
[dependencies.cookie_crate]
optional = true
package = "cookie"
version = "0.18"
[dependencies.cookie_store]
features = ["preserve_order"]
optional = true
version = "0.21"
[dependencies.encoding_rs]
optional = true
version = "0.8"
[dependencies.flate2]
version = "1.1.2"
[dependencies.futures-channel]
version = "0.3.31"
[dependencies.futures-core]
default-features = false
version = "0.3.31"
[dependencies.futures-util]
default-features = false
version = "0.3.31"
[dependencies.hickory-resolver]
optional = true
version = "0.25.2"
[dependencies.http]
version = "1"
[dependencies.http-body]
version = "1"
[dependencies.http-body-util]
version = "0.1"
[dependencies.http2]
features = ["unstable"]
version = "0.5.0"
[dependencies.httparse]
version = "1.9"
[dependencies.ipnet]
version = "2.11.0"
[dependencies.iri-string]
version = "0.7.0"
[dependencies.linked_hash_set]
version = "0.1"
[dependencies.lru]
default-features = false
version = "0.14"
[dependencies.mime]
optional = true
version = "0.3.17"
[dependencies.mime_guess]
default-features = false
optional = true
version = "2.0"
[dependencies.percent-encoding]
version = "2.3"
[dependencies.pin-project-lite]
version = "0.2.4"
[dependencies.rustls-native-certs]
optional = true
version = "0.8.0"
[dependencies.serde]
features = ["derive"]
version = "1.0"
[dependencies.serde_json]
optional = true
version = "1.0"
[dependencies.serde_urlencoded]
version = "0.7.1"
[dependencies.smallvec]
features = ["const_generics", "const_new"]
version = "1.12"
[dependencies.socket2]
features = ["all"]
version = "0.5.10"
[dependencies.sync_wrapper]
features = ["futures"]
version = "1.0"
[dependencies.tokio]
default-features = false
features = ["net", "time", "rt"]
version = "1"
[dependencies.tokio-boring2]
features = ["pq-experimental"]
version = "5.0.0-alpha.1"
[dependencies.tokio-tungstenite]
default-features = false
features = ["handshake"]
optional = true
version = "0.27.0"
[dependencies.tokio-util]
default-features = false
features = ["codec", "io"]
optional = true
version = "0.7.15"
[dependencies.tower]
default-features = false
features = ["timeout", "util", "retry"]
version = "0.5.2"
[dependencies.tower-http]
default-features = false
optional = true
version = "0.6.6"
[dependencies.tower-service]
version = "0.3"
[dependencies.tracing]
default-features = false
features = ["std"]
optional = true
version = "0.1"
[dependencies.url]
version = "2.5"
[dependencies.want]
version = "0.3"
[dependencies.webpki-root-certs]
optional = true
version = "1.0.0"
[dependencies.zstd]
version = "0.13.3"
[dev-dependencies.brotli]
version = "8.0.0"
[dev-dependencies.doc-comment]
version = "0.3"
[dev-dependencies.env_logger]
version = "0.11.8"
[dev-dependencies.flate2]
version = "1.1.1"
[dev-dependencies.futures]
default-features = false
features = ["std"]
version = "0.3.0"
[dev-dependencies.hyper]
default-features = false
features = ["http1", "http2", "client", "server"]
version = "1.1.0"
[dev-dependencies.hyper-util]
features = ["http1", "http2", "client", "client-legacy", "server-auto", "server-graceful", "tokio"]
version = "0.1.13"
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.log]
version = "0.4"
[dev-dependencies.pretty_env_logger]
version = "0.5"
[dev-dependencies.serde]
features = ["derive"]
version = "1.0"
[dev-dependencies.tokio]
default-features = false
features = ["macros", "rt-multi-thread"]
version = "1.0"
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tower]
default-features = false
features = ["limit"]
version = "0.5.2"
[dev-dependencies.tracing]
version = "0.1"
[dev-dependencies.tracing-subscriber]
version = "0.3.19"
[dev-dependencies.zstd]
version = "0.13"
[[example]]
name = "connect_via_lower_priority_tokio_runtime"
path = "examples/connect_via_lower_priority_tokio_runtime.rs"
required-features = ["full", "tracing"]
[[example]]
name = "emulation_firefox"
path = "examples/emulation_firefox.rs"
required-features = ["full", "tracing"]
[[example]]
name = "emulation_twitter"
path = "examples/emulation_twitter.rs"
required-features = ["full", "tracing"]
[[example]]
name = "form"
path = "examples/form.rs"
[[example]]
name = "hickory_dns"
path = "examples/hickory_dns.rs"
required-features = ["hickory-dns", "tracing"]
[[example]]
name = "http1_case_sensitive_headers"
path = "examples/http1_case_sensitive_headers.rs"
[[example]]
name = "http1_websocket"
path = "examples/http1_websocket.rs"
required-features = ["websocket", "futures-util/std", "tracing"]
[[example]]
name = "http2_websocket"
path = "examples/http2_websocket.rs"
required-features = ["websocket", "futures-util/std", "tracing"]
[[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 = "keylog"
path = "examples/keylog.rs"
[[example]]
name = "request_with_interface"
path = "examples/request_with_interface.rs"
required-features = ["full", "tracing"]
[[example]]
name = "request_with_local_address"
path = "examples/request_with_local_address.rs"
required-features = ["full", "tracing"]
[[example]]
name = "request_with_proxy"
path = "examples/request_with_proxy.rs"
required-features = ["full", "tracing"]
[[example]]
name = "request_with_redirect"
path = "examples/request_with_redirect.rs"
required-features = ["full", "tracing"]
[[example]]
name = "request_with_version"
path = "examples/request_with_version.rs"
required-features = ["full", "tracing"]
[[example]]
name = "set_cert_store"
path = "examples/set_cert_store.rs"
required-features = ["native-roots", "webpki-roots", "tracing"]
[[example]]
name = "tls_info"
path = "examples/tls_info.rs"
[[example]]
name = "tor_socks"
path = "examples/tor_socks.rs"
required-features = ["socks"]
[features]
brotli = ["tower-http/decompression-br"]
charset = ["dep:encoding_rs", "dep:mime"]
cookies = ["dep:cookie_crate", "dep:cookie_store"]
default = ["webpki-roots", "charset", "system-proxy"]
deflate = ["tower-http/decompression-deflate"]
full = ["json", "stream", "cookies", "socks", "gzip", "brotli", "zstd", "deflate"]
gzip = ["tower-http/decompression-gzip"]
hickory-dns = ["dep:hickory-resolver"]
json = ["dep:serde_json"]
macos-system-configuration = ["system-proxy"]
multipart = ["dep:mime_guess"]
native-roots = ["dep:rustls-native-certs"]
socks = []
stream = ["tokio/fs", "dep:tokio-util"]
system-proxy = ["dep:system-configuration", "dep:windows-registry"]
tracing = ["http2/tracing", "dep:tracing"]
webpki-roots = ["dep:webpki-root-certs"]
websocket = ["dep:tokio-tungstenite"]
zstd = ["tower-http/decompression-zstd"]
[lib]
doctest = false
name = "newwreq"
path = "src/lib.rs"
[package]
authors = ["0x676e67 <gngppz@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["web-programming::http-client"]
description = "A blazing-fast Rust HTTP Client with TLS fingerprint"
documentation = "https://docs.rs/wreq"
edition = "2024"
keywords = ["http", "client", "websocket", "ja3", "ja4"]
license = "Apache-2.0"
name = "newwreq"
readme = "README.md"
repository = "https://github.com/0x676e67/wreq"
rust-version = "1.85"
version = "5.1.7"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu"]
[target.'cfg(any(target_os = "ios", target_os = "visionos", target_os = "macos", target_os = "tvos", target_os = "watchos", target = "illumos", target = "solaris"))'.dependencies.libc]
version = "0.2.173"
[target.'cfg(target_os = "macos")'.dependencies.system-configuration]
optional = true
version = "0.6.1"
[target."cfg(windows)".dependencies.windows-registry]
optional = true
version = "0.5.2"
[[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 = "connector_layers"
path = "tests/connector_layers.rs"
[[test]]
name = "cookie"
path = "tests/cookie.rs"
required-features = ["cookies"]
[[test]]
name = "deflate"
path = "tests/deflate.rs"
required-features = ["deflate", "stream"]
[[test]]
name = "gzip"
path = "tests/gzip.rs"
required-features = ["gzip", "stream"]
[[test]]
name = "layers"
path = "tests/layers.rs"
[[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"]