# 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.64"
name = "hyper-util"
version = "0.1.20"
authors = ["Sean McArthur <sean@seanmonstar.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "hyper utilities"
homepage = "https://hyper.rs"
documentation = "https://docs.rs/hyper-util"
readme = "README.md"
keywords = [
    "http",
    "hyper",
    "hyperium",
]
categories = [
    "network-programming",
    "web-programming::http-client",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/hyperium/hyper-util"

[package.metadata.docs.rs]
features = ["full"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
__internal_happy_eyeballs_tests = []
client = [
    "hyper/client",
    "tokio/net",
    "dep:tracing",
    "dep:futures-channel",
    "dep:tower-service",
]
client-legacy = [
    "client",
    "dep:socket2",
    "tokio/sync",
    "dep:libc",
    "dep:futures-util",
]
client-pool = [
    "client",
    "dep:futures-util",
    "dep:tower-layer",
]
client-proxy = [
    "client",
    "dep:base64",
    "dep:ipnet",
    "dep:percent-encoding",
]
client-proxy-system = [
    "dep:system-configuration",
    "dep:windows-registry",
]
default = []
full = [
    "client",
    "client-legacy",
    "client-pool",
    "client-proxy",
    "client-proxy-system",
    "server",
    "server-auto",
    "server-graceful",
    "service",
    "http1",
    "http2",
    "tokio",
    "tracing",
]
http1 = ["hyper/http1"]
http2 = ["hyper/http2"]
server = ["hyper/server"]
server-auto = [
    "server",
    "http1",
    "http2",
]
server-graceful = [
    "server",
    "tokio/sync",
]
service = ["dep:tower-service"]
tokio = [
    "dep:tokio",
    "tokio/rt",
    "tokio/time",
]
tracing = ["dep:tracing"]

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

[[example]]
name = "client"
path = "examples/client.rs"
required-features = [
    "client-legacy",
    "http1",
    "tokio",
]

[[example]]
name = "server"
path = "examples/server.rs"
required-features = [
    "server",
    "http1",
    "tokio",
]

[[example]]
name = "server_graceful"
path = "examples/server_graceful.rs"
required-features = [
    "tokio",
    "server-graceful",
    "server-auto",
]

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

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

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1.7.1"

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

[dependencies.futures-util]
version = "0.3.16"
optional = true
default-features = false

[dependencies.http]
version = "1.0"

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

[dependencies.hyper]
version = "1.8.0"

[dependencies.ipnet]
version = "2.9"
optional = true

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.percent-encoding]
version = "2.3"
optional = true

[dependencies.pin-project-lite]
version = "0.2.4"

[dependencies.socket2]
version = ">=0.5.9, <0.7"
features = ["all"]
optional = true

[dependencies.tokio]
version = "1"
optional = true
default-features = false

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

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

[dependencies.tracing]
version = "0.1"
features = ["std"]
optional = true
default-features = false

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

[dev-dependencies.futures-util]
version = "0.3.16"
features = ["alloc"]
default-features = false

[dev-dependencies.http-body-util]
version = "0.1.0"

[dev-dependencies.hyper]
version = "1.4.0"
features = ["full"]

[dev-dependencies.pretty_env_logger]
version = "0.5"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "test-util",
    "signal",
]

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.tower-test]
version = "0.4"

[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies.pnet_datalink]
version = "0.35.0"

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

[target."cfg(windows)".dependencies.windows-registry]
version = ">=0.3, <0.7"
optional = true
