37 releases

0.17.0 Apr 21, 2024
0.16.0 Jan 28, 2024
0.15.2 Jun 17, 2023
0.14.0 Jul 31, 2022
0.5.0 Jun 12, 2015

#104 in Database interfaces

Download history 8282/week @ 2024-08-12 6831/week @ 2024-08-19 8782/week @ 2024-08-26 8418/week @ 2024-09-02 8345/week @ 2024-09-09 6812/week @ 2024-09-16 7939/week @ 2024-09-23 7332/week @ 2024-09-30 6062/week @ 2024-10-07 9197/week @ 2024-10-14 7539/week @ 2024-10-21 6629/week @ 2024-10-28 5641/week @ 2024-11-04 8057/week @ 2024-11-11 6694/week @ 2024-11-18 6088/week @ 2024-11-25

26,909 downloads per month
Used in 317 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.5MB
~49K SLoC