diff --git a/core/src/dbs/iterator.rs b/core/src/dbs/iterator.rs index 6aad6301..4cfdf3b8 100644 --- a/core/src/dbs/iterator.rs +++ b/core/src/dbs/iterator.rs @@ -396,6 +396,7 @@ impl Iterator { } /// Check if the iteration can be limited per iterator + #[cfg(not(target_arch = "wasm32"))] fn check_set_start_limit(&mut self, ctx: &Context, stm: &Statement<'_>) -> bool { // If there are groups we can't if stm.group().is_some() { @@ -421,6 +422,7 @@ impl Iterator { false } + #[cfg(not(target_arch = "wasm32"))] fn compute_start_limit(&mut self, ctx: &Context, stm: &Statement<'_>) { if self.check_set_start_limit(ctx, stm) { if let Some(l) = self.limit { diff --git a/core/src/idx/index.rs b/core/src/idx/index.rs index 611d7fae..db6af0db 100644 --- a/core/src/idx/index.rs +++ b/core/src/idx/index.rs @@ -1,3 +1,5 @@ +#![cfg(not(target_arch = "wasm32"))] + use crate::ctx::Context; use crate::dbs::Options; use crate::err::Error; diff --git a/core/src/idx/planner/mod.rs b/core/src/idx/planner/mod.rs index 9bc8729c..c6c559da 100644 --- a/core/src/idx/planner/mod.rs +++ b/core/src/idx/planner/mod.rs @@ -168,6 +168,7 @@ impl QueryPlanner { &self.fallbacks } + #[cfg(not(target_arch = "wasm32"))] pub(crate) fn is_order(&self, irf: &IteratorRef) -> bool { self.orders.contains(irf) } diff --git a/core/src/sql/statements/info.rs b/core/src/sql/statements/info.rs index c5465e14..fb754da1 100644 --- a/core/src/sql/statements/info.rs +++ b/core/src/sql/statements/info.rs @@ -283,6 +283,7 @@ impl InfoStatement { false => Value::from(res.to_string()), }) } + #[allow(unused_variables)] InfoStatement::Index(index, table, _structured) => { // Allowed to run? opt.is_allowed(Action::View, ResourceKind::Actor, &Base::Db)?; diff --git a/sdk/src/api/engine/remote/ws/wasm.rs b/sdk/src/api/engine/remote/ws/wasm.rs index 44757568..979ba2e9 100644 --- a/sdk/src/api/engine/remote/ws/wasm.rs +++ b/sdk/src/api/engine/remote/ws/wasm.rs @@ -92,7 +92,7 @@ async fn router_handle_request( response, }: Route, state: &mut RouterState, - endpoint: &Endpoint, + _endpoint: &Endpoint, ) -> HandleResult { let RequestData { id, @@ -209,7 +209,7 @@ async fn router_handle_request( async fn router_handle_response( response: Message, state: &mut RouterState, - endpoint: &Endpoint, + _endpoint: &Endpoint, ) -> HandleResult { match Response::try_from(&response) { Ok(option) => {