# 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"
name = "hpx-util"
version = "0.1.3"
authors = ["Akagi201 <akagi201@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common utilities for hpx"
documentation = "https://docs.rs/hpx-util"
readme = false
keywords = [
    "http",
    "client",
    "emulation",
    "ja3",
    "ja4",
]
license = "LGPL-3.0"
repository = "https://github.com/longcipher/hpx"

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

[features]
default = ["emulation"]
emulation = ["dep:typed-builder"]
emulation-compression = []
emulation-rand = [
    "emulation",
    "dep:strum_macros",
    "dep:strum",
]
emulation-serde = ["dep:serde"]
tower-delay = [
    "dep:tower",
    "dep:pin-project-lite",
    "tokio/time",
]

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

[[example]]
name = "emulation_option"
path = "examples/emulation_option.rs"
required-features = ["emulation"]

[[example]]
name = "emulation_rand"
path = "examples/emulation_rand.rs"
required-features = [
    "emulation",
    "emulation-rand",
]

[[example]]
name = "hpx_util_emulation"
path = "examples/hpx_util_emulation.rs"
required-features = ["emulation"]

[[example]]
name = "tower_delay"
path = "examples/tower_delay.rs"
required-features = ["tower-delay"]

[[example]]
name = "tower_jitter_delay"
path = "examples/tower_jitter_delay.rs"
required-features = ["tower-delay"]

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

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

[dependencies.hpx]
version = "0.1.3"

[dependencies.pin-project-lite]
version = "0.2.16"
optional = true

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

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

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

[dependencies.tokio]
version = "1.48.0"
optional = true

[dependencies.tower]
version = "0.5.2"
optional = true

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

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

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

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

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

[dev-dependencies.pin-project-lite]
version = "0.2.16"

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

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

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

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