diff --git a/lib/src/storage/mod.rs b/lib/src/storage/mod.rs index 156e3da2..fbdc8e7f 100644 --- a/lib/src/storage/mod.rs +++ b/lib/src/storage/mod.rs @@ -635,6 +635,7 @@ impl StorageReader { } /// Validates that all the storage invariants held in the data + #[cfg(not(target_arch = "wasm32"))] pub fn validate(&self) -> Result<(), StorageError> { // triples let dspo_size = self.dspo_quads(&[]).count(); diff --git a/lib/src/store.rs b/lib/src/store.rs index d3ff304e..1f3d6003 100644 --- a/lib/src/store.rs +++ b/lib/src/store.rs @@ -860,6 +860,7 @@ impl Store { /// Validates that all the store invariants held in the data #[doc(hidden)] + #[cfg(not(target_arch = "wasm32"))] pub fn validate(&self) -> Result<(), StorageError> { self.storage.snapshot().validate() }