38 releases

0.18.0 Mar 28, 2025
0.17.0 Apr 21, 2024
0.16.0 Jan 28, 2024
0.15.2 Jun 17, 2023
0.5.0 Jun 12, 2015

#365 in Database interfaces

Download history 6279/week @ 2024-12-17 2898/week @ 2024-12-24 6580/week @ 2024-12-31 9474/week @ 2025-01-07 9334/week @ 2025-01-14 11312/week @ 2025-01-21 10619/week @ 2025-01-28 9425/week @ 2025-02-04 9104/week @ 2025-02-11 10497/week @ 2025-02-18 10678/week @ 2025-02-25 10582/week @ 2025-03-04 13123/week @ 2025-03-11 10584/week @ 2025-03-18 13126/week @ 2025-03-25 12424/week @ 2025-04-01

51,098 downloads per month
Used in 336 crates (13 directly)

Apache-2.0 OR MIT

185KB
5.5K SLoC

sqlite3-sys Package Documentation Build

The package provides bindings to SQLite.

The following Cargo features are supported:

  • linkage creates a dependency on sqlite3-src, which links to a suitable SQLite library;
  • bundled compiles SQLite from the source code, ignoring any libraries that might already be installed; and
  • encryption enables bindings to the SQLite Encryption Extension, which is closed source and hence requires purchasing a license and installing SQLite manually.

Development

cargo install bindgen-cli
git clone https://github.com/stainless-steel/sqlite3-src.git --recursive
bindgen --use-core sqlite3-src/source/sqlite3.h \
  | sed -E "s/^pub const ([0-9A-Z_]+): u32/pub const \1: ::core::ffi::c_int/" \
  > src/base.rs

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.

Dependencies

~0–2.6MB
~51K SLoC