libsqlite3-sys
Native bindings to the libsqlite3 library
0.38.2
212M downloads/mo
#481 most downloaded on crates.io
rusqlite/rusqlite
What this package is like to depend on
Last release 15 days ago
08 Aug 2026
Release timing varies
gaps range from 2 weeks to 6 months
Some releases are documented
notes for 26 of 64 stable releases
1 version withdrawn
withdrawn after publishing
11 years old
65 releases · first in 2015
5 releases in the last 12 months
see the full history below
Release timeline
65 releases · Feb 2015 to Aug 2026Releases
latest 60 of 65-
0.38.208 Aug 2026Nothing published for this version
-
0.38.106 Jun 2026Nothing published for this version
-
0.38.026 May 2026Release notes
Open source →What's Changed
- bump sqlcipher to 4.10.0 (sqlite 3.50.4) #1725
- Use CARGO_CFG_TARGET_FEATURE for crt-static check #1737
- Disable u64, usize ToSql/FromSql impl by default #1732, ##1722 (breaking change)
- Make statement cache optional #1682, #1173 (breaking change)
- Remove shell scripts from the published package #1744
- Use new interfaces with 64-bit length parameters #1749
- sqlite3_vtab_rhs_value #1753
- Handle VTab IN values #1754
- Give access to Connection from VTabCursor::column #1755
- Bump minimal SQLite version to 3.34.1 #1733, #1731 (breaking change)
- Bump bundled SQLite version to 3.51.1 #1758
- Add support for transaction to the vtab module #1761
- Check Connection is owned when registering Closure as hook #1764 (breaking change)
- Turn libsqlite3-sys in a !#[no_std] crate #1767
- Add
wasm32-unknown-unknownsupport #1769, #488, #827 - Remove useless Send/Sync on Module #1774
Full Changelog: v0.37.0...v0.38.0
-
0.37.015 Mar 2026Release notes
Open source →What's Changed
- Add
FromSqlError::otherconvenience conversion #1703 - Fix warnings #1705
- Update bindgen requirement from 0.71 to 0.72 #1707
- Fix for vtab::parameter parsing #1712
- Fix clippy warning #1713
- Bump bundled SQLite version to 3.50.2 #1714
- Fix issue with prettyplease #1717
Full Changelog: v0.36.0...v0.37.0
- Add
-
0.36.020 Dec 2025Release notes
Open source →What's Changed
- Introduce Name trait to support both &str and &CStr as name #1659
- Use doc_auto_cfg #1683
- Feature
loadable_extensionis incompatible with some other features #1686 - Add missing wrappers for sqlite3_vtab_nochange and sqlite3_value_nochange #1688
- Update bindings list #1689
- Homogenize code related to hooks #1690
- Try to increase code coverage #1610
- Bump bundled SQLite version to 3.49.2 #1691
- Add bindings to sqlite3_table_column_metadata #1692
- Add bindings to sqlite3_vtab_distinct #1695
- Fix clippy warning #1697
- Add query_one #1699
- Refactor one_column test method #1700
Full Changelog: v0.35.0...v0.36.0
-
0.35.006 Jul 2025Release notes
Open source →What's Changed
- Document 'rusqlite-macros' and 'jiff' features #1663
- access column metadata from prepared statement #1672 / #1666
- add support for Jiff's
Timestamp#1676 - Breaking change: Check that Connection::execute has no tail #1679 / #397
- Breaking change: Check for multiple statements in prepare #1680 / #1147
Full Changelog: v0.34.0...v0.35.0
-
0.34.026 May 2025Release notes
Open source →What's Changed
- Find the system library with minimum version 3.14.0 #1628
- Update error type for
ValueRefmethods #1629 - Use decrement_strong_count directly for Array #1633
- Dedup free_boxed_value #1635
- Bump jiff version #1645
- Deserialize impls #1646
- Introduce BindIndex trait #1649
- Use BindIndex in bind_parameters_named #1651
- Improve flexibility of named params #1652
- Use std::ffi instead of std::os::raw #1653
- Bump bundled SQLite version to 3.49.1 #1654
- update LICENSE #1655
Full Changelog: v0.33.0...v0.34.0
-
0.33.019 Apr 2025Release notes
Open source →What's Changed
- Remove lazy_static dependency #1550
- Add support to jiff Date / DateTime / Time #1551
- Correcting inconsistent parameter name (:value/:val) in doctest example #1555
- Repairing description comment of params! macro #1557
- Try to improve test coverage by using --all #1491
impl FromSqlfor various heap-allocated string and blob slices #1558- Document an alternative way to backup #1562
- Use #[expect(lint)] where possible #1563
- chore: update sqlcipher →
4.6.1(SQLite3.46.1) #1566 - Remove leftover sentence beginning #1571
- Improve loadable extension docs #1529
- Fixed pre-release
wasm32-wasip(\d)targets not enabling wasi compile flags inbundledmode. #1569 - MSRV #1576
- Fix Batch impl #1583
- Test invalid batch #1584
- Mark bindgen-bindings files as generated #1585
- Add 'serialize' feature to 'modern-full' #1586
- Change FnMut to Fn in create_scalar_function #1387
- Add safe binding to sqlite3_wal_hook #1594
- Use C string literal for database name #1596
- Make possible to checkpoint a database from
wal_hook#1595 - Add bindings to sqlite3_trace_v2 #1597
- OwningRows / OwningStatement examples #1462
- Use sqlite3_errstr #1606
- Check if specified
argis out-of-range for auxiliary data #1607 - Remove release_memory feature #1608
- Check limit #1609
- Introduce err macro #1611
- Update bindgen requirement from 0.70 to 0.71 #1612
- Bump hashlink version to 0.10 #1616
- Activate generate_cstr bindgen option #1620
- Bump bundled SQLite version to 3.48.0 #1623
Full Changelog: v0.32.1...v0.33.0
-
0.32.005 Mar 2025Nothing published for this version
-
0.31.019 Jan 2025Nothing published for this version
-
0.30.126 Jul 2024Nothing published for this version
-
0.30.021 Jul 2024Nothing published for this version
-
0.29.022 Jun 2024Nothing published for this version
-
0.28.027 Jan 2024Nothing published for this version
-
0.27.012 Nov 2023Nothing published for this version
-
0.26.026 Mar 2023Nothing published for this version
-
0.25.227 Oct 2022Nothing published for this version
-
0.25.122 Jul 2022Nothing published for this version
-
0.25.014 Jul 2022Nothing published for this version
-
0.24.230 Mar 2022Nothing published for this version
-
0.24.105 Mar 2022Nothing published for this version
-
0.24.027 Feb 2022Nothing published for this version
-
0.23.208 Dec 2021Nothing published for this version
-
0.23.107 Oct 2021Nothing published for this version
-
0.23.004 Oct 2021Nothing published for this version
-
0.22.209 May 2021Nothing published for this version
-
0.22.119 Apr 2021Nothing published for this version
-
0.22.003 Apr 2021Nothing published for this version
-
0.20.107 Oct 2020Nothing published for this version
-
0.20.022 Aug 2020Nothing published for this version
-
0.18.023 Apr 2020Nothing published for this version
-
0.17.308 Apr 2020Nothing published for this version
-
0.17.206 Apr 2020Nothing published for this version
-
0.17.109 Jan 2020Nothing published for this version
-
0.17.013 Dec 2019Nothing published for this version
-
0.16.027 Jul 2019Nothing published for this version
-
0.15.026 Jun 2019Nothing published for this version
-
0.14.024 Apr 2019Release notes
Open source →- BREAKING CHANGE:
ToSqlimplementation fortime::Timespecuses RFC 3339 (%Y-%m-%dT%H:%M:%S.%fZ). Previous format was %Y-%m-%d %H:%M:%S:%f %Z. - BREAKING CHANGE: Remove potentially conflicting impl of ToSqlOutput (#313).
- BREAKING CHANGE: Replace column index/count type (i32) with usize.
- BREAKING CHANGE: Replace parameter index/count type (i32) with usize.
- BREAKING CHANGE: Replace row changes/count type (i32) with usize.
- BREAKING CHANGE: Scalar functions must be
Sendable and'static. - Bugfix: Commit failure unhandled, database left in unusable state (#366).
- Bugfix:
free_boxed_hookdoes not work forfn. - Update the bundled SQLite version to 3.24.0 (#326).
- Add DropBehavior::Panic to enforce intentional commit or rollback.
- Implement
sqlite3_update_hook(#260, #328),sqlite3_commit_hookandsqlite3_rollback_hook. - Add support to unlock notification behind
unlock_notifyfeature (#294, #331). - Make
Statement::column_indexcase-insensitive (#330). - Add comment to justify
&mut ConnectioninTransaction. - Fix
tyvar_behind_raw_pointerwarnings. - Fix handful of clippy warnings.
- Fix
Connection::opendocumentation (#332) - Add binding to
sqlite3_get_autocommitandsqlite3_stmt_busy. - Add binding to
sqlite3_busy_timeoutandsqlite3_busy_handler. - Add binding to
sqlite3_expanded_sql. - Use
rerun-if-env-changedin libsqlite3-sys (#329). - Return an
InvalidQueryerror when SQL is not read only.
- BREAKING CHANGE:
-
0.13.010 Mar 2019Release notes
Open source →- Added ToSqlConversionFailure case to Error enum.
- Now depends on chrono 0.4, bitflags 1.0, and (optionally) cc 1.0 / bindgen 0.31.
- The ToSql/FromSql implementations for time::Timespec now include and expect fractional seconds and timezone in the serialized string.
- The RowIndex type used in Row::get is now publicly exported.
- New
sqlcipherfeature allows linking against SQLCipher instead of SQLite. - Doc link in README now point to docs.rs.
-
0.12.006 Jan 2019Release notes
Open source →- Defines HAVE_USLEEP when building with a bundled SQLite (#263).
- Updates dependencies to their latest versions, particularly serde to 1.0.
- Adds support for vcpkg on Windows.
- Adds
ToSqlimpls forstrand[u8].
-
0.11.106 Jan 2019Nothing published for this version
-
0.11.016 Dec 2018Release notes
Open source →- Avoid publicly exporting SQLite constants multiple times from libsqlite3-sys.
- Adds
FromSqlandToSqlimpls forisize. Documents whyusizeandu64are not included.
-
0.10.021 Oct 2018Release notes
Open source →- Re-export the
ErrorCodeenum fromlibsqlite3-sys. - Adds
version()andversion_number()functions for querying the version of SQLite in use. - Adds the
limitsfeature, exposinglimit()andset_limit()methods onConnection. - Updates to
libsqlite3-sys0.7.0, which runs rust-bindgen at build-time instead of assuming the presence of all expected SQLite constants and functions. - Clarifies supported SQLite versions. Running with SQLite older than 3.6.8 now panics, and some features will not compile unless a sufficiently-recent SQLite version is used. See the README for requirements of particular features.
- When running with SQLite 3.6.x, rusqlite attempts to perform SQLite initialization. If it fails,
rusqlite will panic since it cannot ensure the threading mode for SQLite. This check can be
skipped by calling the unsafe function
rusqlite::bypass_sqlite_initialization(). This is technically a breaking change but is unlikely to affect anyone in practice, since prior to this version the check that rusqlite was using would cause a segfault if linked against a SQLite older than 3.7.0. - rusqlite now performs a one-time check (prior to the first connection attempt) that the runtime
SQLite version is at least as new as the SQLite version found at buildtime. This check can be
skipped by calling the unsafe function
rusqlite::bypass_sqlite_version_check(). - Removes the
libcdependency in favor of usingstd::os::raw
- Re-export the
-
0.9.404 Jan 2022 -
0.9.317 Aug 2018 -
0.9.105 Dec 2017Release notes
Open source →- BREAKING CHANGE:
Connection::close()now returns aResult<(), (Connection, Error)>instead of aResult<(), Error>so callers get the still-open connection back on failure.
- BREAKING CHANGE:
-
0.9.013 Nov 2017Nothing published for this version
-
0.8.129 May 2017Nothing published for this version
-
0.8.006 Apr 2017Release notes
Open source →- BREAKING CHANGE: The
FromSqltrait has been redesigned. It now requires a single, safe method instead of the previous definition which required implementing one or two unsafe methods. - BREAKING CHANGE: The
ToSqltrait has been redesigned. It can now be implemented withoutunsafe, and implementors can choose to return either borrowed or owned results. - BREAKING CHANGE: The closure passed to
query_row,query_row_and_then,query_row_safe, andquery_row_namednow expects a&Rowinstead of aRow. The vast majority of calls to these functions will probably not need to change; see https://github.com/jgallagher/rusqlite/pull/184. - BREAKING CHANGE: A few cases of the
Errorenum have sprouted additional information (e.g.,FromSqlConversionFailurenow also includes the column index and the type returned by SQLite). - Added
#[deprecated(since = "...", note = "...")]flags (new in Rust 1.9 for libraries) to all deprecated APIs. - Added
query_rowconvenience function toStatement. - Added
bundledfeature which will build SQLite from source instead of attempting to link against a SQLite that already exists on the system. - Fixed a bug where using cached prepared statements resulted in attempting to close a connection
failing with
DatabaseBusy; see https://github.com/jgallagher/rusqlite/issues/186.
- BREAKING CHANGE: The
-
0.7.205 Apr 2017 withdrawnRelease notes
Open source →- BREAKING CHANGE:
Rowsno longer implementsIterator. It still has anext()method, but the lifetime of the returnedRowis now tied to the lifetime of the vendingRowsobject. This behavior is more correct. Previously there were runtime checks to prevent misuse, but other changes in this release to reset statements as soon as possible introduced yet another hazard related to the lack of these lifetime connections. We were already recommending the use ofquery_mapandquery_and_thenover rawquery; both of those still return handles that implementIterator. - BREAKING CHANGE:
Transaction::savepoint()now returns aSavepointinstead of anotherTransaction. UnlikeTransaction,Savepoints can be rolled back while keeping the current savepoint active. - BREAKING CHANGE: Creating transactions from a
Connectionor savepoints from aTransactionnow take&mut selfinstead of&selfto correctly represent that transactions within a connection are inherently nested. While a transaction is alive, the parent connection or transaction is unusable, soTransactionnow implementsDeref<Target=Connection>, giving access toConnection's methods via theTransactionitself. - BREAKING CHANGE:
Transaction::set_commitandTransaction::set_rollbackhave been replaced byTransaction::set_drop_behavior. - Adds
Connection::prepare_cached.Connectionnow keeps an internal cache of any statements prepared via this method. The size of this cache defaults to 16 (prepare_cachedwill always work but may re-prepare statements if more are prepared than the cache holds), and can be controlled viaConnection::set_prepared_statement_cache_capacity. - Adds
query_map_namedandquery_and_then_namedtoStatement. - Adds
insertconvenience method toStatementwhich returns the row ID of an inserted row. - Adds
existsconvenience method returning whether a query finds one or more rows. - Adds support for serializing types from the
serde_jsoncrate. Requires theserde_jsonfeature. - Adds support for serializing types from the
chronocrate. Requires thechronofeature. - Removes
load_extensionfeature fromlibsqlite3-sys.load_extensionis still available on rusqlite itself. - Fixes crash on nightly Rust when using the
tracefeature. - Adds optional
clippyfeature and addresses issues it found. - Adds
column_count()method toStatementandRow. - Adds
types::Valuefor dynamic column types. - Adds support for user-defined aggregate functions (behind the existing
functionsCargo feature). - Introduces a
RowIndextrait allowing columns to be fetched via index (as before) or name (new). - Introduces
ZeroBlobtype under theblobmodule/feature exposing SQLite's zeroblob API. - Adds CI testing for Windows via AppVeyor.
- Fixes a warning building libsqlite3-sys under Rust 1.6.
- Adds an unsafe
handle()method toConnection. Please file an issue if you actually use it.
- BREAKING CHANGE:
-
0.7.103 Mar 2017Nothing published for this version
-
0.7.028 Feb 2017Nothing published for this version
-
0.6.226 Jan 2017Nothing published for this version
-
0.6.124 Jan 2017Nothing published for this version
-
0.6.031 Dec 2016Release notes
Open source →- BREAKING CHANGE:
SqliteErroris now an enum instead of a struct. Previously, we were (ab)using the error code and message to send back both underlying SQLite errors and errors that occurred at the Rust level. Now those have been separated out; SQLite errors are returned asSqliteFailurecases (which still include the error code but also include a Rust-friendlier enum as well), and rusqlite-level errors are captured in other cases. Because of this change,SqliteErrorno longer implementsPartialEq. - BREAKING CHANGE: When opening a new detection, rusqlite now detects if SQLite was compiled or configured for single-threaded use only; if it was, connection attempts will fail. If this affects you, please open an issue.
- BREAKING CHANGE:
SqliteTransactionDeferred,SqliteTransactionImmediate, andSqliteTransactionExclusiveare no longer exported. Instead, useTransactionBehavior::Deferred,TransactionBehavior::Immediate, andTransactionBehavior::Exclusive. - Removed
Sqliteprefix on many types:SqliteConnectionis nowConnectionSqliteErroris nowErrorSqliteResultis nowResultSqliteStatementis nowStatementSqliteRowsis nowRowsSqliteRowis nowRowSqliteOpenFlagsis nowOpenFlagsSqliteTransactionis nowTransaction.SqliteTransactionBehavioris nowTransactionBehavior.SqliteLoadExtensionGuardis nowLoadExtensionGuard. The old, prefixed names are still exported but are deprecated.
- Adds a variety of
..._namedmethods for executing queries using named placeholder parameters. - Adds
backupfeature that exposes SQLite's online backup API. - Adds
blobfeature that exposes SQLite's Incremental I/O for BLOB API. - Adds
functionsfeature that allows user-defined scalar functions to be added to openSqliteConnections.
- BREAKING CHANGE:
-
0.5.020 May 2016Release notes
Open source →- Adds
tracefeature that allows the use of SQLite's logging, tracing, and profiling hooks. - Slight change to the closure types passed to
query_mapandquery_and_then:- Remove the
'staticrequirement on the closure's output type. - Give the closure a
&SqliteRowinstead of aSqliteRow.
- Remove the
- When building, the environment variable
SQLITE3_LIB_DIRnow takes precedence over pkg-config. - If
pkg-configis not available, we will try to findlibsqlite3in/usr/lib. - Add more documentation for failure modes of functions that return
SqliteResults. - Updates
libcdependency to 0.2, fixing builds on ARM for Rust 1.6 or newer.
- Adds
-
0.4.017 Dec 2015 -
0.3.009 Dec 2015Release notes
Open source →- Removes
get_opt. Useget_checkedinstead. - Add
query_row_and_thenandquery_and_thenconvenience functions. These are analogous toquery_rowandquery_mapbut allow functions that can fail by returningResults. - Relax uses of
P: AsRef<...>from&PtoP. - Add additional error check for calling
executewhenquerywas intended. - Improve debug formatting of
SqliteStatementandSqliteConnection. - Changes documentation of
get_checkedto correctly indicate that it returns errors (not panics) when given invalid types or column indices.
- Removes
-
0.2.026 Jul 2015Release notes
Open source →- Add
column_names()toSqliteStatement. - By default, include
SQLITE_OPEN_NO_MUTEXandSQLITE_OPEN_URIflags when opening a new connection. - Fix generated bindings (e.g.,
sqlite3_execwas wrong). - Use now-generated
sqlite3_destructor_typeto defineSQLITE_STATICandSQLITE_TRANSIENT.
- Add
-
0.1.012 May 2015Release notes
Open source →- [breaking-change] Modify
query_rowto return aResultinstead of unwrapping. - Deprecate
query_row_safe(usequery_rowinstead). - Add
query_map. - Add
get_checked, which asks SQLite to do some basic type-checking of columns.
- [breaking-change] Modify