Cargo Features

tower-async-http has no features set by default.

[dependencies]
tower-async-http = { version = "0.2.0", features = ["full", "add-extension", "auth", "catch-panic", "cors", "follow-redirect", "fs", "limit", "map-request-body", "map-response-body", "normalize-path", "propagate-header", "redirect", "request-id", "sensitive-headers", "set-header", "set-status", "timeout", "trace", "util", "validate-request", "compression-br", "compression-deflate", "compression-full", "compression-gzip", "compression-zstd", "decompression-br", "decompression-deflate", "decompression-full", "decompression-gzip", "decompression-zstd"] }
full = add-extension, auth, catch-panic, compression-full, cors, decompression-full, follow-redirect, fs, limit, map-request-body, map-response-body, normalize-path, propagate-header, redirect, request-id, sensitive-headers, set-header, set-status, timeout, trace, util, validate-request
add-extension full?

Affects builder::ServiceBuilderExt.add_extension, tower-async-http::add_extension

auth full? = base64, validate-request

Affects tower-async-http::auth

catch-panic full? = tracing

Enables std of futures-util

Affects builder::ServiceBuilderExt.catch_panic, tower-async-http::catch_panic

cors full?

Affects tower-async-http::cors

follow-redirect full? = iri-string

Enables util of tower-async

Affects builder::ServiceBuilderExt.follow_redirects, tower-async-http::follow_redirect

fs full? = httpdate, mime, mime_guess, percent-encoding, set-status, tracing

Enables tokio-util, alloc of futures-util, fs and io-util of tokio

Affects services::fs

limit full?

Affects builder::ServiceBuilderExt.request_body_limit, tower-async-http::limit

map-request-body full?

Affects builder::ServiceBuilderExt.map_request_body, tower-async-http::map_request_body

map-response-body full?

Affects builder::ServiceBuilderExt.map_response_body, tower-async-http::map_response_body

normalize-path full?

Affects builder::ServiceBuilderExt.trim_trailing_slash, tower-async-http::normalize_path

propagate-header full?

Affects builder::ServiceBuilderExt.propagate_header, tower-async-http::propagate_header

redirect full?

Affects services::redirect

request-id full? = uuid

Affects builder::ServiceBuilderExt.set_request_id, builder::ServiceBuilderExt.set_x_request_id, builder::ServiceBuilderExt.propagate_request_id, builder::ServiceBuilderExt.propagate_x_request_id, tower-async-http::request_id

sensitive-headers full?

Affects builder::ServiceBuilderExt.sensitive_headers, builder::ServiceBuilderExt.sensitive_request_headers, builder::ServiceBuilderExt.sensitive_response_headers, tower-async-http::sensitive_headers

set-header full?

Affects builder::ServiceBuilderExt.override_request_header, builder::ServiceBuilderExt.append_request_header, builder::ServiceBuilderExt.insert_request_header_if_not_present, builder::ServiceBuilderExt.override_response_header, builder::ServiceBuilderExt.append_response_header, builder::ServiceBuilderExt.insert_response_header_if_not_present, tower-async-http::set_header

set-status fs? full?

Affects tower-async-http::set_status

timeout full?

Enables macros and time of tokio

Affects tower-async-http::timeout

trace full? = tracing

Affects builder::ServiceBuilderExt.trace_for_http, builder::ServiceBuilderExt.trace_for_grpc, tower-async-http::trace

util full? = tower-async

Affects builder::ServiceBuilderExt

validate-request auth? full? = mime

Affects tower-async-http::validate_request

compression-br compression-full? = tokio, tokio-util

Enables brotli of async-compression

optional dependencies

compression-deflate compression-full? = tokio, tokio-util

Enables zlib of async-compression

compression-full full? = compression-br, compression-deflate, compression-gzip, compression-zstd
compression-gzip compression-full? = tokio, tokio-util

Enables gzip of async-compression

compression-zstd compression-full? = tokio, tokio-util

Enables zstd of async-compression

decompression-br decompression-full? = tokio, tokio-util

Enables brotli of async-compression

decompression-deflate decompression-full? = tokio, tokio-util

Enables zlib of async-compression

decompression-full full? = decompression-br, decompression-deflate, decompression-gzip, decompression-zstd
decompression-gzip decompression-full? = tokio, tokio-util

Enables gzip of async-compression

decompression-zstd decompression-full? = tokio, tokio-util

Enables zstd of async-compression

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

async-compression compression-br? compression-deflate? compression-gzip? compression-zstd? decompression-br? decompression-deflate? decompression-gzip? decompression-zstd?
base64 auth?

Enables base64 ^0.21

httpdate fs?
iri-string follow-redirect?
mime fs? validate-request?
mime_guess fs?
percent-encoding fs?
tokio compression-br? compression-deflate? compression-gzip? compression-zstd? decompression-br? decompression-deflate? decompression-gzip? decompression-zstd? fs? timeout?
tokio-util compression-br? compression-deflate? compression-gzip? compression-zstd? decompression-br? decompression-deflate? decompression-gzip? decompression-zstd? fs?
tower-async follow-redirect? util?
tracing catch-panic? fs? trace?
uuid request-id?