Cargo Features

[dependencies]
libsqlite3-sys-le = { version = "0.21.0", default-features = false, features = ["bundled", "bundled-windows", "buildtime_bindgen", "loadable_extension", "loadable_extension_embedded", "sqlcipher", "min_sqlite_version_3_6_8", "min_sqlite_version_3_7_16", "bundled_bindings", "unlock_notify", "preupdate_hook", "session", "wasm32-wasi-vfs", "winsqlite3"] }
default = min_sqlite_version_3_6_8

The min_sqlite_version_3_6_8 feature is set by default whenever libsqlite3-sys-le is added without default-features = false somewhere in the dependency tree.

bundled = bundled_bindings, cc
bundled-windows = bundled_bindings, cc

allows a dependency to use bundled only on windows

buildtime_bindgen preupdate_hook? session? = bindgen, pkg-config, vcpkg
loadable_extension loadable_extension_embedded? = quote, syn

Affects libsqlite3-sys-le::sqlite3_api

loadable_extension_embedded = loadable_extension
sqlcipher

when sqlcipher is used, bundled and loadable_extension are ignored

min_sqlite_version_3_6_8 default = pkg-config, vcpkg
min_sqlite_version_3_7_16 winsqlite3? = pkg-config, vcpkg
bundled_bindings bundled? bundled-windows?

Bundle only the bindings file. Note that this does nothing if buildtime_bindgen is enabled.

unlock_notify

sqlite3_unlock_notify >= 3.6.12

preupdate_hook session? = buildtime_bindgen

3.13.0

session = buildtime_bindgen, preupdate_hook

3.13.0

in_gecko with-asan wasm32-wasi-vfs
winsqlite3 = min_sqlite_version_3_7_16

lowest version shipped with Windows 10.0.10586 was 3.8.8.3

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

bindgen build buildtime_bindgen?

Enables bindgen ^0.56

pkg-config build buildtime_bindgen? min_sqlite_version_3_6_8 min_sqlite_version_3_7_16?
cc build bundled? bundled-windows?
syn build loadable_extension?

Enables syn ^1.0

quote build loadable_extension?
vcpkg build msvc buildtime_bindgen? min_sqlite_version_3_6_8 min_sqlite_version_3_7_16?