rquest-util 2.2.1

Common utilities for rquest
Documentation
# 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-util"
version = "2.2.1"
authors = ["0x676e67 <gngppz@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common utilities for rquest"
documentation = "https://docs.rs/rquest-util"
readme = "README.md"
keywords = [
    "http",
    "client",
    "emulation",
    "ja3",
    "ja4",
]
license = "GPL-3.0"
repository = "https://github.com/0x676e67/rquest-util"

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

[features]
brotli = ["rquest/brotli"]
default = [
    "emulation",
    "gzip",
    "brotli",
    "deflate",
    "zstd",
]
deflate = ["rquest/deflate"]
emulation = ["dep:typed-builder"]
emulation-rand = [
    "emulation",
    "dep:strum_macros",
    "dep:strum",
]
emulation-serde = ["dep:serde"]
full = [
    "emulation",
    "emulation-rand",
    "gzip",
    "brotli",
    "deflate",
    "zstd",
]
gzip = ["rquest/gzip"]
zstd = ["rquest/zstd"]

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

[[example]]
name = "emulation"
path = "examples/emulation.rs"
required-features = [
    "emulation",
    "gzip",
    "brotli",
    "deflate",
    "zstd",
    "rquest/full",
]

[[example]]
name = "emulation_option"
path = "examples/emulation_option.rs"
required-features = [
    "emulation",
    "gzip",
    "brotli",
    "deflate",
    "zstd",
    "rquest/full",
]

[[example]]
name = "emulation_rand"
path = "examples/emulation_rand.rs"
required-features = [
    "emulation",
    "gzip",
    "brotli",
    "deflate",
    "zstd",
    "rquest/full",
    "emulation-rand",
]

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

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

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

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

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

[dependencies.rquest]
version = ">=3.0.5,<10"
features = [
    "gzip",
    "brotli",
    "deflate",
    "zstd",
]

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

[dependencies.strum]
version = "0.27.1"
optional = true

[dependencies.strum_macros]
version = "0.27.1"
optional = true

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

[dev-dependencies.futures-util]
version = "0.3.0"

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

[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.pin-project-lite]
version = "0.2.0"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

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