Email me

Crate features / tower-http

Feature flags · tower-http 0.7.1 · from crates.io 2026-10-24

tower-http features: what each one does, and the line to copy

Short answertower-http 0.7.1 has 34 features. Nothing is on by default: turn on what you use. It needs Rust 1.65 or newer.

Pick features

0.7.1latest version
34features
6optional dependencies
1.65MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
add-extensionnothing else (a switch the code checks)
authbase64, validate-request
catch-panictracing, futures-util/std, dep:http-body, dep:http-body-util
compression-brdep:async-compression, async-compression?/brotli, futures-core, dep:http-body, tokio-util, dep:tokio
compression-deflatedep:async-compression, async-compression?/zlib, futures-core, dep:http-body, tokio-util, dep:tokio
compression-fullcompression-br, compression-deflate, compression-gzip, compression-zstd
compression-gzipdep:async-compression, async-compression?/gzip, futures-core, dep:http-body, tokio-util, dep:tokio
compression-zstddep:async-compression, async-compression?/zstd, futures-core, dep:http-body, tokio-util, dep:tokio
corsnothing else (a switch the code checks)
csrfnothing else (a switch the code checks)
decompression-brdep:async-compression, async-compression?/brotli, futures-core, dep:http-body, dep:http-body-util, tokio-util, dep:tokio
decompression-deflatedep:async-compression, async-compression?/zlib, futures-core, dep:http-body, dep:http-body-util, tokio-util, dep:tokio
decompression-fulldecompression-br, decompression-deflate, decompression-gzip, decompression-zstd
decompression-gzipdep:async-compression, async-compression?/gzip, futures-core, dep:http-body, dep:http-body-util, tokio-util, dep:tokio
decompression-zstddep:async-compression, async-compression?/zstd, futures-core, dep:http-body, dep:http-body-util, tokio-util, dep:tokio
follow-redirectfutures-util, dep:http-body, dep:url, tower/util
fsdep: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, httpdate, set-status, futures-util/alloc
fulladd-extension, auth, catch-panic, compression-full, cors, csrf, 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
limitdep:http-body, dep:http-body-util
map-request-bodynothing else (a switch the code checks)
map-response-bodynothing else (a switch the code checks)
metricsdep:http-body, dep:tokio, tokio?/time
normalize-pathnothing else (a switch the code checks)
on-early-dropdep:http-body
propagate-headernothing else (a switch the code checks)
redirectnothing else (a switch the code checks)
request-iduuid
sensitive-headersnothing else (a switch the code checks)
set-headernothing else (a switch the code checks)
set-statusnothing else (a switch the code checks)
timeoutdep:http-body, dep:tokio, tokio?/time
tracedep:http-body, tracing
utiltower
validate-requestmime

dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).

MSRV history

The minimum Rust version tower-http declares (rust-version), and the release that changed it:

  • 0.2.1 (2022-01-21): Rust 1.51
  • 0.1.3 (2022-01-22): no rust-version declared
  • 0.2.2 (2022-02-08): Rust 1.51
  • 0.3.5 (2022-12-02): Rust 1.56
  • 0.4.2 (2023-07-19): Rust 1.60
  • 0.5.0 (2023-11-21): Rust 1.66
  • 0.6.4 (2025-05-10): Rust 1.64
  • 0.7.0 (2026-06-15): Rust 1.65

Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p tower-http --precise <version>, or use resolver 3, which picks compatible versions for you.

More on tower-http

Real downloads, dependents and alternatives: tower-http crate data (2M real downloads a day, 3,782 dependents).

Security record: tower-http advisories.

docs.rs feature list · crates.io · license MIT · edition 2018

Up next

Before you depend on ittower-http crate dataReal downloads, dependents, alternatives.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ