408 lines
6.7 KiB
TOML
408 lines
6.7 KiB
TOML
# 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.98"
|
|
name = "wreq"
|
|
version = "0.16.1"
|
|
authors = ["0x676e67 <gngppz@gmail.com>"]
|
|
build = false
|
|
include = [
|
|
"/README.md",
|
|
"/LICENSE",
|
|
"/src/**/*.rs",
|
|
]
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "An ergonomic, privacy-aware Rust HTTP Client"
|
|
documentation = "https://docs.rs/wreq"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"http",
|
|
"client",
|
|
"websocket",
|
|
"ja3",
|
|
"ja4",
|
|
]
|
|
categories = ["web-programming::http-client"]
|
|
license = "Apache-2.0"
|
|
repository = "https://github.com/0x676e67/wreq"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = [
|
|
"--cfg",
|
|
"docsrs",
|
|
]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[features]
|
|
brotli = [
|
|
"dep:tower-http",
|
|
"tower-http?/decompression-br",
|
|
]
|
|
charset = [
|
|
"dep:encoding_rs",
|
|
"dep:mime",
|
|
]
|
|
compio-rt = [
|
|
"dep:compio",
|
|
"compio?/runtime",
|
|
"compio?/net",
|
|
"wreq-rt/compio-rt",
|
|
]
|
|
cookies = ["dep:cookie"]
|
|
default = [
|
|
"webpki-roots",
|
|
"tokio-rt",
|
|
]
|
|
deflate = [
|
|
"dep:tower-http",
|
|
"tower-http?/decompression-deflate",
|
|
]
|
|
form = [
|
|
"dep:serde",
|
|
"dep:serde_html_form",
|
|
]
|
|
gzip = [
|
|
"dep:tower-http",
|
|
"tower-http?/decompression-gzip",
|
|
]
|
|
hickory-dns = ["dep:hickory-resolver"]
|
|
json = [
|
|
"dep:serde",
|
|
"dep:serde_json",
|
|
]
|
|
multipart = [
|
|
"dep:mime_guess",
|
|
"dep:sync_wrapper",
|
|
"sync_wrapper?/futures",
|
|
]
|
|
parking_lot = [
|
|
"dep:parking_lot",
|
|
"http2/parking_lot",
|
|
]
|
|
prefix-symbols = ["btls/prefix-symbols"]
|
|
query = [
|
|
"dep:serde",
|
|
"dep:serde_html_form",
|
|
]
|
|
socks = ["dep:tokio-socks"]
|
|
stream = [
|
|
"dep:tokio-util",
|
|
"dep:sync_wrapper",
|
|
"sync_wrapper?/futures",
|
|
]
|
|
system-proxy = [
|
|
"dep:system-configuration",
|
|
"dep:windows-registry",
|
|
]
|
|
tokio-rt = [
|
|
"tokio/rt",
|
|
"tokio/net",
|
|
"tokio/fs",
|
|
"wreq-rt/tokio-rt",
|
|
]
|
|
tracing = [
|
|
"dep:tracing",
|
|
"wreq-proto/tracing",
|
|
]
|
|
webpki-roots = ["dep:webpki-root-certs"]
|
|
ws = [
|
|
"dep:tokio-tungstenite",
|
|
"tokio-tungstenite?/handshake",
|
|
]
|
|
zstd = [
|
|
"dep:tower-http",
|
|
"tower-http?/decompression-zstd",
|
|
]
|
|
|
|
[lib]
|
|
name = "wreq"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies.btls]
|
|
version = "0.5.6"
|
|
|
|
[dependencies.btls-sys]
|
|
version = "0.5.6"
|
|
|
|
[dependencies.bytes]
|
|
version = "1.11.1"
|
|
|
|
[dependencies.compio]
|
|
version = "0.19.2"
|
|
features = [
|
|
"io",
|
|
"io-compat",
|
|
]
|
|
optional = true
|
|
|
|
[dependencies.cookie]
|
|
version = "0.18"
|
|
optional = true
|
|
|
|
[dependencies.encoding_rs]
|
|
version = "0.8"
|
|
optional = true
|
|
|
|
[dependencies.futures-util]
|
|
version = "0.3.33"
|
|
default-features = false
|
|
|
|
[dependencies.hickory-resolver]
|
|
version = "0.26.0"
|
|
optional = true
|
|
|
|
[dependencies.http]
|
|
version = "1.4.0"
|
|
|
|
[dependencies.http-body]
|
|
version = "1.0.1"
|
|
|
|
[dependencies.http-body-util]
|
|
version = "0.1.4"
|
|
|
|
[dependencies.http2]
|
|
version = "0.5.17"
|
|
|
|
[dependencies.httparse]
|
|
version = "1.10.1"
|
|
|
|
[dependencies.ipnet]
|
|
version = "2.12.0"
|
|
|
|
[dependencies.lru]
|
|
version = "0.18.0"
|
|
|
|
[dependencies.mime]
|
|
version = "0.3.17"
|
|
optional = true
|
|
|
|
[dependencies.mime_guess]
|
|
version = "2.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.parking_lot]
|
|
version = "0.12.5"
|
|
optional = true
|
|
|
|
[dependencies.percent-encoding]
|
|
version = "2.3.2"
|
|
|
|
[dependencies.pin-project-lite]
|
|
version = "0.2.17"
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
optional = true
|
|
|
|
[dependencies.serde_html_form]
|
|
version = "0.4.0"
|
|
optional = true
|
|
|
|
[dependencies.serde_json]
|
|
version = "1.0"
|
|
optional = true
|
|
|
|
[dependencies.socket2]
|
|
version = "0.6.3"
|
|
features = ["all"]
|
|
|
|
[dependencies.sync_wrapper]
|
|
version = "1.0.2"
|
|
optional = true
|
|
|
|
[dependencies.tokio]
|
|
version = "1.52.3"
|
|
default-features = false
|
|
|
|
[dependencies.tokio-btls]
|
|
version = "0.5.6"
|
|
|
|
[dependencies.tokio-socks]
|
|
version = "0.5.2"
|
|
optional = true
|
|
|
|
[dependencies.tokio-tungstenite]
|
|
version = "0.29.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tokio-util]
|
|
version = "0.7.18"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tower]
|
|
version = "0.5.3"
|
|
features = [
|
|
"timeout",
|
|
"util",
|
|
"retry",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.tower-http]
|
|
version = "0.6.8"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tracing]
|
|
version = "0.1"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.url]
|
|
version = "2.5.8"
|
|
|
|
[dependencies.webpki-root-certs]
|
|
version = "1.0.7"
|
|
optional = true
|
|
|
|
[dependencies.wreq-proto]
|
|
version = "0.2.3"
|
|
default-features = false
|
|
|
|
[dependencies.wreq-rt]
|
|
version = "0.2.2-rc.2"
|
|
default-features = false
|
|
|
|
[dev-dependencies.brotli]
|
|
version = "8.0.2"
|
|
|
|
[dev-dependencies.compio]
|
|
version = "0.19.2"
|
|
features = [
|
|
"macros",
|
|
"net",
|
|
"runtime",
|
|
"time",
|
|
"io",
|
|
"io-compat",
|
|
]
|
|
|
|
[dev-dependencies.criterion]
|
|
version = "0.8.2"
|
|
features = ["async_tokio"]
|
|
|
|
[dev-dependencies.cyper]
|
|
version = "0.9.0"
|
|
features = [
|
|
"rustls",
|
|
"stream",
|
|
]
|
|
default-features = false
|
|
|
|
[dev-dependencies.flate2]
|
|
version = "1.1.9"
|
|
|
|
[dev-dependencies.futures]
|
|
version = "0.3.0"
|
|
features = ["std"]
|
|
default-features = false
|
|
|
|
[dev-dependencies.hyper]
|
|
version = "1.7.0"
|
|
features = [
|
|
"http1",
|
|
"http2",
|
|
"server",
|
|
]
|
|
default-features = false
|
|
|
|
[dev-dependencies.hyper-util]
|
|
version = "0.1.20"
|
|
features = [
|
|
"http1",
|
|
"http2",
|
|
"server-auto",
|
|
"server-graceful",
|
|
"tokio",
|
|
]
|
|
|
|
[dev-dependencies.pretty_env_logger]
|
|
version = "0.5"
|
|
|
|
[dev-dependencies.reqwest]
|
|
version = "0.13.3"
|
|
features = [
|
|
"rustls",
|
|
"stream",
|
|
"http2",
|
|
]
|
|
default-features = false
|
|
|
|
[dev-dependencies.serde]
|
|
version = "1.0"
|
|
features = ["derive"]
|
|
|
|
[dev-dependencies.sysinfo]
|
|
version = "0.39.1"
|
|
features = ["system"]
|
|
default-features = false
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.0"
|
|
features = [
|
|
"macros",
|
|
"rt-multi-thread",
|
|
]
|
|
default-features = false
|
|
|
|
[dev-dependencies.tokio-test]
|
|
version = "0.4.5"
|
|
|
|
[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.20"
|
|
|
|
[dev-dependencies.wreq-rt]
|
|
version = "0.2.2-rc.1"
|
|
features = [
|
|
"tokio-rt",
|
|
"compio-rt",
|
|
]
|
|
|
|
[dev-dependencies.zstd]
|
|
version = "0.13.3"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies.system-configuration]
|
|
version = "0.7.0"
|
|
optional = true
|
|
|
|
[target."cfg(unix)".dependencies.libc]
|
|
version = "0.2.186"
|
|
|
|
[target."cfg(windows)".dependencies.windows-registry]
|
|
version = "0.6.0"
|
|
optional = true
|
|
|
|
[profile.bench]
|
|
codegen-units = 1
|
|
incremental = false
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
incremental = false
|