diff --git a/Cargo.toml b/Cargo.toml index 78a54ae..65a2d2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,10 +18,12 @@ targets = ["wasm32-unknown-unknown"] [dependencies] talc = { version = "4.4", default-features = false, features = ["lock_api"] } -diesel = { version = "2.2", features = ["i-implement-a-third-party-backend-and-opt-into-breaking-changes"] } +diesel = { version = "2.2", features = [ + "i-implement-a-third-party-backend-and-opt-into-breaking-changes", +] } diesel_derives = "2.2" -wasm-bindgen = "=0.2.99" -wasm-bindgen-futures = "0.4" +wasm-bindgen = "=0.2.100" +wasm-bindgen-futures = "0.4.50" js-sys = { version = "0.3" } tracing = { version = "0.1", default-features = false } tokio = { version = "1.38", default-features = false, features = ["sync"] } @@ -30,16 +32,19 @@ serde-wasm-bindgen = "0.6" thiserror = "2" [dev-dependencies] -wasm-bindgen-test = "=0.3.49" -console_error_panic_hook = { version = "0.1"} +wasm-bindgen-test = "=0.3.50" +console_error_panic_hook = { version = "0.1" } rand = "0.8" getrandom = { version = "0.2", features = ["js"] } web-sys = { version = "0.3", features = ["console"] } chrono = { version = "0.4", features = ["wasmbind", "serde"] } diesel_migrations = "2.2" -diesel = { version = "2.2", features = ["chrono"]} +diesel = { version = "2.2", features = ["chrono"] } tracing-wasm = { version = "0.2" } -tracing-subscriber = { version = "0.3", features = ["env-filter", "tracing-log"] } +tracing-subscriber = { version = "0.3", features = [ + "env-filter", + "tracing-log", +] } [patch.crates-io] diesel = { git = "https://github.com/diesel-rs/diesel", branch = "master" } diff --git a/src/connection/mod.rs b/src/connection/mod.rs index b8492f4..ff79123 100644 --- a/src/connection/mod.rs +++ b/src/connection/mod.rs @@ -289,8 +289,9 @@ impl WasmSqliteConnection { &source, &WasmSqlite, &[], - |sql, is_cached| Statement::prepare(raw_connection, sql, is_cached), - instrumentation.as_mut(), + raw_connection, + Statement::prepare, + &mut *instrumentation, ) { Ok(statement) => statement, Err(e) => { diff --git a/src/connection/stmt.rs b/src/connection/stmt.rs index cc3255b..f3613f8 100644 --- a/src/connection/stmt.rs +++ b/src/connection/stmt.rs @@ -33,9 +33,10 @@ impl Statement { // since the statement pointer might be invalidated if a memory resize // takes place. pub fn prepare( - raw_connection: &RawConnection, + raw_connection: &mut RawConnection, sql: &str, is_cached: PrepareForCache, + _: &[SqliteType], ) -> QueryResult { let sqlite3 = crate::get_sqlite_unchecked();