383 lines
6.6 KiB
TOML
383 lines
6.6 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 = "2018"
|
|
rust-version = "1.64"
|
|
name = "tower-http"
|
|
version = "0.6.8"
|
|
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 = []
|
|
auth = [
|
|
"base64",
|
|
"validate-request",
|
|
]
|
|
catch-panic = [
|
|
"tracing",
|
|
"futures-util/std",
|
|
"dep:http-body",
|
|
"dep:http-body-util",
|
|
]
|
|
compression-br = [
|
|
"async-compression/brotli",
|
|
"futures-core",
|
|
"dep:http-body",
|
|
"tokio-util",
|
|
"tokio",
|
|
]
|
|
compression-deflate = [
|
|
"async-compression/zlib",
|
|
"futures-core",
|
|
"dep:http-body",
|
|
"tokio-util",
|
|
"tokio",
|
|
]
|
|
compression-full = [
|
|
"compression-br",
|
|
"compression-deflate",
|
|
"compression-gzip",
|
|
"compression-zstd",
|
|
]
|
|
compression-gzip = [
|
|
"async-compression/gzip",
|
|
"futures-core",
|
|
"dep:http-body",
|
|
"tokio-util",
|
|
"tokio",
|
|
]
|
|
compression-zstd = [
|
|
"async-compression/zstd",
|
|
"futures-core",
|
|
"dep:http-body",
|
|
"tokio-util",
|
|
"tokio",
|
|
]
|
|
cors = []
|
|
decompression-br = [
|
|
"async-compression/brotli",
|
|
"futures-core",
|
|
"dep:http-body",
|
|
"dep:http-body-util",
|
|
"tokio-util",
|
|
"tokio",
|
|
]
|
|
decompression-deflate = [
|
|
"async-compression/zlib",
|
|
"futures-core",
|
|
"dep:http-body",
|
|
"dep:http-body-util",
|
|
"tokio-util",
|
|
"tokio",
|
|
]
|
|
decompression-full = [
|
|
"decompression-br",
|
|
"decompression-deflate",
|
|
"decompression-gzip",
|
|
"decompression-zstd",
|
|
]
|
|
decompression-gzip = [
|
|
"async-compression/gzip",
|
|
"futures-core",
|
|
"dep:http-body",
|
|
"dep:http-body-util",
|
|
"tokio-util",
|
|
"tokio",
|
|
]
|
|
decompression-zstd = [
|
|
"async-compression/zstd",
|
|
"futures-core",
|
|
"dep:http-body",
|
|
"dep:http-body-util",
|
|
"tokio-util",
|
|
"tokio",
|
|
]
|
|
default = []
|
|
follow-redirect = [
|
|
"futures-util",
|
|
"dep:http-body",
|
|
"iri-string",
|
|
"tower/util",
|
|
]
|
|
fs = [
|
|
"futures-core",
|
|
"futures-util",
|
|
"dep:http-body",
|
|
"dep:http-body-util",
|
|
"tokio/fs",
|
|
"tokio-util/io",
|
|
"tokio/io-util",
|
|
"dep:http-range-header",
|
|
"mime_guess",
|
|
"mime",
|
|
"percent-encoding",
|
|
"httpdate",
|
|
"set-status",
|
|
"futures-util/alloc",
|
|
"tracing",
|
|
]
|
|
full = [
|
|
"add-extension",
|
|
"auth",
|
|
"catch-panic",
|
|
"compression-full",
|
|
"cors",
|
|
"decompression-full",
|
|
"follow-redirect",
|
|
"fs",
|
|
"limit",
|
|
"map-request-body",
|
|
"map-response-body",
|
|
"metrics",
|
|
"normalize-path",
|
|
"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",
|
|
"tokio/time",
|
|
]
|
|
normalize-path = []
|
|
propagate-header = []
|
|
redirect = []
|
|
request-id = ["uuid"]
|
|
sensitive-headers = []
|
|
set-header = []
|
|
set-status = []
|
|
timeout = [
|
|
"dep:http-body",
|
|
"tokio/time",
|
|
]
|
|
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.iri-string]
|
|
version = "0.7.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.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-util]
|
|
version = "0.1"
|
|
features = [
|
|
"client-legacy",
|
|
"http1",
|
|
"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"
|