Cargo Features

[dependencies]
limitador = { version = "0.7.0", default-features = false, features = ["disk_storage", "distributed_storage", "redis_storage", "lenient_conditions"] }
default = disk_storage, redis_storage

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

disk_storage default = rocksdb

Affects keys::bin, storage::disk

distributed_storage = base64, h2, prost, prost-types, tokio, tokio-stream, tonic, tonic-reflection, uuid

Affects storage::distributed

redis_storage default = r2d2, redis, tokio

Affects storage::redis

lenient_conditions

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.

rocksdb disk_storage

Enables rocksdb

Optional dependencies

redis redis_storage

Enables redis ^0.25

r2d2 redis_storage
tokio distributed_storage? redis_storage
base64 distributed_storage?
tokio-stream distributed_storage?
h2 distributed_storage?

Enables h2 ^0.3

uuid distributed_storage?
tonic distributed_storage?

Enables tonic ^0.11

tonic-reflection distributed_storage?

Enables tonic-reflection ^0.11

prost distributed_storage?

Enables prost ^0.12

prost-types distributed_storage?

Enables prost-types ^0.12