Cargo Features

governor = { version = "0.6.3", default-features = false, features = ["no_std", "std", "quanta", "jitter", "dashmap"] }
default = dashmap, jitter, quanta, std

These default features are set whenever governor is added without default-features = false somewhere in the dependency tree.


Enables compat_hash of no-std-compat


This will sadly also add hashbrown even if overriden by std. Cargo does not seem to provide any cfg(compat_hash && !std) functionality.
Luckily, hashbrown is really small.

std default = futures, futures-timer

Enables parking_lot, std of no-std-compat and nonzero_ext

Affects default::DefaultClock, keyed::DefaultKeyedStateStore, default::DefaultClock, keyed::DefaultKeyedStateStore

quanta default

Enables quanta

Affects default::DefaultClock

jitter default = rand

Affects jitter::UniformJitter, sinks::SinkRateLimitExt.ratelimit_sink_with_jitter

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-timer std
futures std
rand jitter
dashmap default

Affects keyed::DefaultKeyedStateStore