From 3021fa12a5b794de1c6ff1e0aba6de0e37368820 Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Thu, 23 May 2024 12:56:27 -0400 Subject: [PATCH] Fix --no-default-features and bench --- limitador/Cargo.toml | 6 ++++++ limitador/benches/bench.rs | 1 + 2 files changed, 7 insertions(+) diff --git a/limitador/Cargo.toml b/limitador/Cargo.toml index bdf94940..0f9844e2 100644 --- a/limitador/Cargo.toml +++ b/limitador/Cargo.toml @@ -63,6 +63,12 @@ time = "0.3.36" serial_test = "3.0" criterion = { version = "0.5.1", features = ["html_reports", "async_tokio"] } redis-test = { version = "0.4.0", features = ["aio"] } +redis = { version = "0.25", features = [ + "connection-manager", + "tokio-comp", + "tls-native-tls", + "tokio-native-tls-comp", +] } paste = "1" rand = "0.8" tempfile = "3.5.0" diff --git a/limitador/benches/bench.rs b/limitador/benches/bench.rs index fcd3db24..8e07e580 100644 --- a/limitador/benches/bench.rs +++ b/limitador/benches/bench.rs @@ -13,6 +13,7 @@ use limitador::storage::disk::{DiskStorage, OptimizeFor}; #[cfg(feature = "distributed_storage")] use limitador::storage::distributed::CrInMemoryStorage; use limitador::storage::in_memory::InMemoryStorage; +#[cfg(feature = "redis_storage")] use limitador::storage::redis::CachedRedisStorageBuilder; use limitador::storage::{AsyncCounterStorage, CounterStorage}; use limitador::{AsyncRateLimiter, RateLimiter};