From 27df1a8b64ee9ef0cd69a344886085a491a56bed Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Tue, 14 May 2024 14:53:35 -0400 Subject: [PATCH] Ignore distributed storage when targetting wasm32 --- limitador/src/storage/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/limitador/src/storage/mod.rs b/limitador/src/storage/mod.rs index 25c66f96..70aab7c9 100644 --- a/limitador/src/storage/mod.rs +++ b/limitador/src/storage/mod.rs @@ -8,10 +8,12 @@ use thiserror::Error; #[cfg(feature = "disk_storage")] pub mod disk; +#[cfg(not(target_arch = "wasm32"))] pub mod distributed; pub mod in_memory; pub mod wasm; +#[cfg(not(target_arch = "wasm32"))] pub use crate::storage::distributed::CrInMemoryStorage as DistributedInMemoryStorage; #[cfg(feature = "redis_storage")]