Skip to content

Commit cc17d71

Browse files
committed
fix: Added incompatibility warning
1 parent e488a13 commit cc17d71

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sqlx-sqlite/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ pub(crate) use libsqlite3_sys as sqlite_lib;
7878
#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))]
7979
pub(crate) use sqlite_wasm_rs as sqlite_lib;
8080

81+
#[cfg(all(
82+
feature = "load-extension",
83+
any(target_arch = "wasm32", target_arch = "wasm64")
84+
))]
85+
compile_error!("Sqlite on WASM does not support `load-extension`");
86+
8187
use std::sync::atomic::AtomicBool;
8288

8389
pub use arguments::{SqliteArgumentValue, SqliteArguments, SqliteArgumentsBuffer};

0 commit comments

Comments
 (0)