Skip to main content

sqlite3_sys/
lib.rs

1//! Bindings to [SQlite].
2//!
3//! The following Cargo features are supported:
4//!
5//! * `linkage` to create a dependency on `sqlite3-src`, which links to a suitable
6//!   SQLite library;
7//! * `bundled` to activate the linkage and compile SQLite from the source code that
8//!   comes with the package, ignoring any SQLite libraries that might be installed
9//!   in the system;
10//! * `system` to activate the linkage and use the SQLite library that is already
11//!   installed in the system, ignoring the possibility of compiling it from the
12//!   source code; and
13//! * `encryption` to enable bindings to the [SQLite Encryption Extension], which is
14//!   closed source and hence requires purchasing a license and installing SQLite
15//!   manually.
16//!
17//! [SQLite]: https://www.sqlite.org
18//! [SQLite Encryption Extension]: https://www.sqlite.org/see/doc/release/www/index.wiki
19
20#![allow(non_camel_case_types, non_snake_case)]
21#![no_std]
22
23#[cfg(feature = "linkage")]
24extern crate sqlite3_src;
25
26mod base;
27#[cfg(feature = "encryption")]
28mod encryption;
29
30pub use base::*;
31#[cfg(feature = "encryption")]
32pub use encryption::*;