Cargo Features
Tower has no features set by default.
[dependencies]
tower = { version = "0.5.2", features = ["full", "log", "balance", "buffer", "discover", "filter", "hedge", "limit", "load", "load-shed", "make", "ready-cache", "reconnect", "retry", "spawn-ready", "steer", "timeout", "util", "tokio-stream"] }
- full = balance, buffer, discover, filter, hedge, limit, load, load-shed, make, ready-cache, reconnect, retry, spawn-ready, steer, timeout, util
- log
-
FIXME: Use weak dependency once available (https://github.com/rust-lang/cargo/issues/8832)
- balance full? = discover, load, make, ready-cache, slab, util
-
Affects
tower::balance
… - buffer full? = futures-core, pin-project-lite, tokio-util, tracing
-
Affects
tower::buffer
… - discover balance? full? = futures-core, pin-project-lite
-
Affects
tower::discover
… - filter full? hedge? = futures-core, futures-util, pin-project-lite
-
Affects
tower::filter
,util::ServiceExt.filter
,util::ServiceExt.filter_async
… - hedge full? = filter, futures-util, hdrhistogram, tracing, util
-
Affects
tower::hedge
… - limit full? = futures-core, pin-project-lite, tokio-util, tracing
-
Affects
tower::limit
… - load balance? full? = futures-core, pin-project-lite, tracing
-
Affects
tower::load
… - load-shed full? = futures-core, pin-project-lite
-
Affects
tower::load_shed
… - make balance? full? reconnect? = futures-util, pin-project-lite
-
Affects
tower::make
… - ready-cache balance? full? = futures-core, futures-util, indexmap, pin-project-lite, tracing
-
Enables tokio
Affects
tower::ready_cache
… - reconnect full? = make, tracing
-
tokio:
stdin, stdout, stderr
Affects
tower::reconnect
… - retry full? = futures-core, pin-project-lite, util
-
Affects
tower::retry
… - spawn-ready full? = futures-core, futures-util, pin-project-lite, tracing, util
-
tokio:
Includes basic task execution capabilities
Affects
tower::spawn_ready
… - steer full?
-
Affects
tower::steer
… - timeout full? = pin-project-lite
-
Affects
tower::timeout
… - util balance? full? hedge? retry? spawn-ready? = futures-core, futures-util, pin-project-lite, sync_wrapper
-
Affects
tower::util
…
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.
- futures-core buffer? discover? filter? limit? load? load-shed? ready-cache? retry? spawn-ready? util?
- futures-util filter? hedge? make? ready-cache? spawn-ready? util?
- hdrhistogram hedge?
- indexmap ready-cache?
- slab balance?
- tokio buffer? hedge? limit? load? make? ready-cache? reconnect? retry? spawn-ready? timeout?
- tokio-stream implicit feature
-
Enables tokio-stream
tokio-stream:
Utilities to work with
Stream
andtokio
- tokio-util buffer? limit?
- tracing buffer? hedge? limit? load? log? ready-cache? reconnect? spawn-ready?
- pin-project-lite buffer? discover? filter? limit? load? load-shed? make? ready-cache? retry? spawn-ready? timeout? util?
- sync_wrapper util?