Skip to content

Rust bindings for SQLite that are no_std and wasm compatible

Notifications You must be signed in to change notification settings

vlcn-io/sqlite-rs-embedded

Repository files navigation

SQLite no_std

Note: these bindings are faithful to the base SQLite C-API as much as possible for minimum rust<->c overhead. This, however, means that the bindings are not entirely safe. E.g., the SQLite statement object will clear returned values out from under you if you step or finalize it while those references exist in your Rust program.

SQLite is lite. Its bindings should be lite too. They should be able to be used anywhere SQLite is used, not incur any performance impact, not include any extra dependencies, and be usable against any SQLite version.

Thus this repository was born.

These bindings:

  • Do not require the rust standard library
  • Use the SQLite memory subsystem if no allocator exists
  • Can be used to write SQLite extensions that compile to WASM and run in the browser
  • Does 0 copying. E.g., through some tricks, Rust strings are passed directly to SQLite with no conversion to or copying to CString.

About

Rust bindings for SQLite that are no_std and wasm compatible

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages