From 263bab0c84a396cf5867dd65911c2af79cad7824 Mon Sep 17 00:00:00 2001 From: jkomyno Date: Wed, 15 Nov 2023 17:22:52 +0100 Subject: [PATCH] chore: add comment on ffi.rs for sqlite --- quaint/src/connector/sqlite/ffi.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quaint/src/connector/sqlite/ffi.rs b/quaint/src/connector/sqlite/ffi.rs index bddfd4354237..c510a459be81 100644 --- a/quaint/src/connector/sqlite/ffi.rs +++ b/quaint/src/connector/sqlite/ffi.rs @@ -1,4 +1,5 @@ -//! This is a partial copy of `rusqlite::ffi::*`. +//! Here, we export only the constants we need to avoid pulling in `rusqlite::ffi::*`, in the sibling `error.rs` file, +//! which would break Wasm compilation. pub const SQLITE_BUSY: i32 = 5; pub const SQLITE_CONSTRAINT_FOREIGNKEY: i32 = 787; pub const SQLITE_CONSTRAINT_NOTNULL: i32 = 1299;