/ic-sqlite

SQLite on the Internet Computer, backed by stable memory

Primary LanguageRust

ic-sqlite

SQLite on the Internet Computer, backed by stable memory. Based on wasm-sqlite and icfs.

C ABI Compatibility

For most Wasm targets, the ABI used by Rust isn't compatible with the C ABI. This includes wasm32-unknown-unknown, the target used by canisters for the Internet Computer.

So, while linking with C can appear to work it can result in hidden memory corruption.

Related issues are rust-lang/rust#83788 and rustwasm/team#291.

c2rust may provide a potential path forward.