Cargo Features
[dependencies]
rusqlite = { version = "0.40.0", default-features = false, features = ["load_extension", "backup", "blob", "cache", "collation", "functions", "trace", "bundled", "bundled-sqlcipher", "bundled-sqlcipher-vendored-openssl", "buildtime_bindgen", "limits", "loadable_extension", "hooks", "preupdate_hook", "fallible_uint", "i128_blob", "sqlcipher", "unlock_notify", "vtab", "csvtab", "array", "session", "window", "series", "extra_check", "modern_sqlite", "in_gecko", "bundled-windows", "with-asan", "column_metadata", "column_decltype", "wasm32-wasi-vfs", "serialize", "pointer", "ffi-sqlite-wasm-rs", "modern-full", "bundled-full", "rusqlite-macros", "libsqlite3-sys"] }
- load_extension modern-full?
-
if not SQLITE_OMIT_LOAD_EXTENSION
- backup modern-full?
-
hot-backup interface
Affects
rusqlite::backup… - blob modern-full?
-
if not SQLITE_OMIT_INCRBLOB
sqlite3_blobAffects
rusqlite::blob… - cache default = hashlink
-
Prepared statements cache by connection (like https://www.sqlite.org/tclsqlite.html#cache)
- collation modern-full?
-
sqlite3_create_collation_v2
- functions modern-full? window?
-
sqlite3_create_function_v2
Affects
rusqlite::functions… - trace modern-full?
-
sqlite3_log / sqlite3_trace_v2
Affects
rusqlite::trace… - bundled bundled-full? bundled-sqlcipher? = modern_sqlite
-
Use bundled SQLite sources (instead of the one provided by your OS / distribution)
Enables bundled of optional libsqlite3-sys
- bundled-sqlcipher bundled-sqlcipher-vendored-openssl? = bundled
-
Use SQLCipher instead of SQLite
Enables bundled-sqlcipher of optional libsqlite3-sys
- bundled-sqlcipher-vendored-openssl = bundled-sqlcipher
-
Enables bundled-sqlcipher-vendored-openssl of optional libsqlite3-sys
- buildtime_bindgen
-
Enables buildtime_bindgen of optional libsqlite3-sys, bindgen of optional sqlite-wasm-rs
- limits modern-full?
-
sqlite3_limit
Affects
rusqlite::limits… - loadable_extension
-
Used to generate a cdylib
Enables loadable_extension of optional libsqlite3-sys
- hooks modern-full? preupdate_hook? session?
-
sqlite3_commit_hook, sqlite3_rollback_hook, ...
Affects
inner_connection::InnerConnection.commit_hook,inner_connection::InnerConnection.rollback_hook,inner_connection::InnerConnection.update_hook,inner_connection::InnerConnection.progress_handler,inner_connection::InnerConnection.authorizer,rusqlite::hooks… - preupdate_hook = hooks
-
if SQLITE_ENABLE_PREUPDATE_HOOK
Enables preupdate_hook of optional libsqlite3-sys
Affects
inner_connection::InnerConnection.preupdate_hook… - fallible_uint
-
u64, usize, NonZeroU64, NonZeroUsize
- i128_blob modern-full?
- sqlcipher
-
Enables sqlcipher of optional libsqlite3-sys
libsqlite3-sys:
Use SQLCipher instead of SQLite
- unlock_notify modern-full?
-
SQLITE_ENABLE_UNLOCK_NOTIFY
Enables unlock_notify of optional libsqlite3-sys
Affects
unlock_notify::wait_for_unlock_notify… - vtab array? csvtab? modern-full? series?
-
if not SQLITE_OMIT_VIRTUALTABLE
sqlite3_vtabAffects
rusqlite::vtab… - csvtab modern-full? = csv, vtab
-
Affects
vtab::csvtab… - array modern-full? = pointer, vtab
-
Port of Carray() table-valued function
Affects
vtab::array… - session = hooks
-
if SQLITE_ENABLE_SESSION
session extensionEnables session of optional libsqlite3-sys
Affects
rusqlite::session… - window modern-full? = functions
-
if not SQLITE_OMIT_WINDOWFUNC
sqlite3_create_window_functionAffects
functions::WindowAggregate… - series modern-full? = vtab
-
Port of generate_series table-valued function
Affects
vtab::series… - extra_check modern-full?
-
check for invalid query.
- modern_sqlite bundled? in_gecko? modern-full?
-
]3.34.1, last]
Enables bundled_bindings of optional libsqlite3-sys
Affects
error::set_errmsg,transaction::TransactionState,vtab::InValues… - in_gecko = modern_sqlite
-
Enables in_gecko of optional libsqlite3-sys
- bundled-windows
-
Enables bundled-windows of optional libsqlite3-sys
- with-asan
-
Build bundled sqlite with -fsanitize=address
Enables with-asan of optional libsqlite3-sys
- column_metadata modern-full?
-
if SQLITE_ENABLE_COLUMN_METADATA
Enables column_metadata of optional libsqlite3-sys
Affects
column::ColumnMetadata… - column_decltype modern-full?
-
if not SQLITE_OMIT_DECLTYPE
Affects
column::Column… - wasm32-wasi-vfs
-
Enables wasm32-wasi-vfs of optional libsqlite3-sys
- serialize modern-full?
-
if not SQLITE_OMIT_DESERIALIZE
Affects
rusqlite::serialize… - pointer array?
-
pointer passing interfaces: 3.20.0
- ffi-sqlite-wasm-rs default
-
On wasm32-unknown-unknown builds use the sqlite-wasm-rs crate instead of libsqlite3-sys
Enables sqlite-wasm-rs
- modern-full bundled-full? = array, backup, blob, chrono, collation, column_decltype, column_metadata, csvtab, extra_check, functions, hooks, i128_blob, jiff, limits, load_extension, modern_sqlite, serde_json, serialize, series, time, trace, unlock_notify, url, uuid, vtab, window
-
Helper feature for enabling most non-build-related optional features or dependencies (except
session). This is useful for running tests / clippy / etc. New features and optional dependencies that don't conflict with anything else should be added here. - default = cache, ffi-sqlite-wasm-rs
-
These default features are set whenever
rusqliteis added withoutsomewhere in the dependency tree.default-features = false - bundled-full = bundled, modern-full
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.
- jiff modern-full?
-
Enables jiff
Jiff Date/Time/Timestamp persistence
- time modern-full?
-
Enables time
Date/Time/Timestamp persistence
- hashlink cache
-
Enables hashlink
LRU cache of statement
- chrono modern-full?
-
Enables chrono
Chrono Date/Time/Timestamp persistence
- serde_json modern-full?
-
Enables serde_json
JSON persistence
- csv csvtab?
-
Enables csv
Virtual table
- url modern-full?
-
Enables url
Url persistence
- uuid modern-full?
-
Enables uuid
Uuid persistence
- rusqlite-macros implicit feature
-
Enables rusqlite-macros
WIP comptime checks
- libsqlite3-sys not wasm not unknown wasm unknown implicit feature
-
Enables libsqlite3-sys
libsqlite3-sys:
Native bindings to the libsqlite3 library