From 4d5a75a8370be59a17603c5cf6a22105fcb63e8f Mon Sep 17 00:00:00 2001 From: Erin Power Date: Mon, 22 Dec 2025 22:30:01 +0000 Subject: [PATCH] fix: no-default-features compile errors --- crates/core/src/connection.rs | 2 +- crates/core/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/core/src/connection.rs b/crates/core/src/connection.rs index 0e2ba68bb..de8876124 100644 --- a/crates/core/src/connection.rs +++ b/crates/core/src/connection.rs @@ -323,7 +323,7 @@ fn init_main_db_impl( data_dir: Option<&DataDir>, json_registry: Option>>, attach: Vec, - runtimes: Vec, + #[cfg_attr(not(feature = "wasm"), expect(unused))] runtimes: Vec, main_migrations: bool, ) -> Result<(Connection, bool), ConnectionError> { let main_path = data_dir.map(|d| d.main_db_path()); diff --git a/crates/core/src/lib.rs b/crates/core/src/lib.rs index e9e444549..407cdf9fe 100644 --- a/crates/core/src/lib.rs +++ b/crates/core/src/lib.rs @@ -55,6 +55,7 @@ mod wasm { } } + #[derive(Clone)] pub struct SqliteFunctionRuntime; pub struct WasmRuntimeResult { @@ -77,7 +78,7 @@ mod wasm { pub fn build_sync_wasm_runtimes_for_components( _components_path: PathBuf, - _fs_root_path: Option, + _fs_root_path: Option<&std::path::Path>, _dev: bool, ) -> Result, AnyError> { return Ok(vec![]);