Cargo Features
[dependencies]
tower = { version = "0.4.13", default-features = false, features = ["full", "log", "balance", "buffer", "discover", "filter", "hedge", "limit", "load", "load-shed", "make", "ready-cache", "reconnect", "retry", "spawn-ready", "steer", "timeout", "util", "tokio", "tokio-stream"] }
- default = log
-
The
log
feature is set by default whenevertower
is added without
somewhere in the dependency tree.default-features = false - full = balance, buffer, discover, filter, hedge, limit, load, load-shed, make, ready-cache, reconnect, retry, spawn-ready, steer, timeout, util
- log default
-
FIXME: Use weak dependency once available (https://github.com/rust-lang/cargo/issues/8832)
- balance full? = discover, load, make, rand, ready-cache, slab
-
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
-
Enables time and sync of tokio
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
-
Affects
tower::ready_cache
… - reconnect full? = make, tracing
-
Affects
tower::reconnect
… - retry full? = futures-core, pin-project-lite
-
Affects
tower::retry
… - spawn-ready full? = futures-core, futures-util, pin-project-lite, tracing, util
-
Affects
tower::spawn_ready
… - steer full?
-
Affects
tower::steer
… - timeout full? = pin-project-lite
-
Affects
tower::timeout
… - util full? hedge? spawn-ready? = futures-core, futures-util, pin-project, pin-project-lite
-
Affects
tower::util
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features.
- 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?
-
With alloc
- hdrhistogram hedge?
- indexmap ready-cache?
-
Enables indexmap ^1.0.2
- rand balance?
- slab balance?
- tokio implicit feature
-
With sync
- tokio-stream implicit feature
- tokio-util buffer? limit?
- tracing buffer? hedge? limit? load? ready-cache? reconnect? spawn-ready?
-
With std
- pin-project util?
- pin-project-lite buffer? discover? filter? limit? load? load-shed? make? ready-cache? retry? spawn-ready? timeout? util?