# 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 = "2018"
rust-version = "1.64"
name = "tower-http"
version = "0.6.11"
authors = ["Tower Maintainers <team@tower-rs.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tower middleware and utilities for HTTP clients and servers"
homepage = "https://github.com/tower-rs/tower-http"
readme = "README.md"
keywords = [
    "io",
    "async",
    "futures",
    "service",
    "http",
]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/tower-rs/tower-http"
resolver = "2"

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

[package.metadata.playground]
features = ["full"]

[package.metadata.cargo_check_external_types]
allowed_external_types = [
    "bytes::*",
    "http::*",
    "http_body::*",
    "mime::*",
    "tokio::*",
    "tower::*",
    "tower_layer::*",
    "tower_service::*",
    "tracing::*",
    "tracing_core::*",
]

[features]
add-extension = []
async-compression = []
auth = [
    "base64",
    "validate-request",
]
catch-panic = [
    "tracing",
    "futures-util/std",
    "dep:http-body",
    "dep:http-body-util",
]
compression-br = [
    "dep:async-compression",
    "async-compression?/brotli",
    "futures-core",
    "dep:http-body",
    "tokio-util",
    "dep:tokio",
]
compression-deflate = [
    "dep:async-compression",
    "async-compression?/zlib",
    "futures-core",
    "dep:http-body",
    "tokio-util",
    "dep:tokio",
]
compression-full = [
    "compression-br",
    "compression-deflate",
    "compression-gzip",
    "compression-zstd",
]
compression-gzip = [
    "dep:async-compression",
    "async-compression?/gzip",
    "futures-core",
    "dep:http-body",
    "tokio-util",
    "dep:tokio",
]
compression-zstd = [
    "dep:async-compression",
    "async-compression?/zstd",
    "futures-core",
    "dep:http-body",
    "tokio-util",
    "dep:tokio",
]
cors = []
decompression-br = [
    "dep:async-compression",
    "async-compression?/brotli",
    "futures-core",
    "dep:http-body",
    "dep:http-body-util",
    "tokio-util",
    "dep:tokio",
]
decompression-deflate = [
    "dep:async-compression",
    "async-compression?/zlib",
    "futures-core",
    "dep:http-body",
    "dep:http-body-util",
    "tokio-util",
    "dep:tokio",
]
decompression-full = [
    "decompression-br",
    "decompression-deflate",
    "decompression-gzip",
    "decompression-zstd",
]
decompression-gzip = [
    "dep:async-compression",
    "async-compression?/gzip",
    "futures-core",
    "dep:http-body",
    "dep:http-body-util",
    "tokio-util",
    "dep:tokio",
]
decompression-zstd = [
    "dep:async-compression",
    "async-compression?/zstd",
    "futures-core",
    "dep:http-body",
    "dep:http-body-util",
    "tokio-util",
    "dep:tokio",
]
default = []
follow-redirect = [
    "futures-util",
    "dep:http-body",
    "dep:url",
    "tower/util",
]
fs = [
    "dep:tokio",
    "tokio?/fs",
    "tokio?/io-util",
    "futures-core",
    "futures-util",
    "dep:http-body",
    "dep:http-body-util",
    "tokio-util/io",
    "dep:http-range-header",
    "mime_guess",
    "mime",
    "percent-encoding",
    "httpdate",
    "set-status",
    "futures-util/alloc",
]
full = [
    "add-extension",
    "auth",
    "catch-panic",
    "compression-full",
    "cors",
    "decompression-full",
    "follow-redirect",
    "fs",
    "limit",
    "map-request-body",
    "map-response-body",
    "metrics",
    "normalize-path",
    "on-early-drop",
    "propagate-header",
    "redirect",
    "request-id",
    "sensitive-headers",
    "set-header",
    "set-status",
    "timeout",
    "trace",
    "util",
    "validate-request",
]
limit = [
    "dep:http-body",
    "dep:http-body-util",
]
map-request-body = []
map-response-body = []
metrics = [
    "dep:http-body",
    "dep:tokio",
    "tokio?/time",
]
normalize-path = []
on-early-drop = ["dep:http-body"]
propagate-header = []
redirect = []
request-id = ["uuid"]
sensitive-headers = []
set-header = []
set-status = []
timeout = [
    "dep:http-body",
    "dep:tokio",
    "tokio?/time",
]
tokio = []
trace = [
    "dep:http-body",
    "tracing",
]
util = ["tower"]
validate-request = ["mime"]

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

[dependencies.async-compression]
version = "0.4"
features = ["tokio"]
optional = true

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

[dependencies.bitflags]
version = "2.0.2"

[dependencies.bytes]
version = "1"

[dependencies.futures-core]
version = "0.3"
optional = true
default-features = false

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

[dependencies.http]
version = "1.0"

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

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

[dependencies.http-range-header]
version = "0.4.0"
optional = true

[dependencies.httpdate]
version = "1.0"
optional = true

[dependencies.mime]
version = "0.3.17"
optional = true
default-features = false

[dependencies.mime_guess]
version = "2"
optional = true
default-features = false

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

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

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

[dependencies.tokio-util]
version = "0.7"
features = ["io"]
optional = true
default-features = false

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

[dependencies.tower-layer]
version = "0.3.3"

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

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

[dependencies.url]
version = "2.5"
optional = true

[dependencies.uuid]
version = "1.0"
features = ["v4"]
optional = true

[dev-dependencies.brotli]
version = "8"

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

[dev-dependencies.flate2]
version = "1.0"

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

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

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

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

[dev-dependencies.hyper-util]
version = "0.1"
features = [
    "client-legacy",
    "http1",
    "server",
    "service",
    "tokio",
]

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

[dev-dependencies.serde_json]
version = "1.0"

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

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

[dev-dependencies.tower]
version = "0.5"
features = [
    "buffer",
    "util",
    "retry",
    "make",
    "timeout",
]

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

[dev-dependencies.zstd]
version = "0.13"
