#5219·diesel

Harden SQLite test setup

Author: weiznichCreated Sep 18, 2026Updated Sep 18, 2026
Labelsenhancementhelp wantedsqliteCI

Rust Version

stable

Diesel Version

main

Diesel Features

sqlite

Database Version

  • sqlite 3.x

Operating System Version

Linux

What happened?

We would like to harden the SQLite setup to perform more checks. SQLite offers a SQLITE_DEBUG compile time option that performs a lot of internal checks and verifies that the API is called correctly.

What did you expect to happen?

We extend the sqlite_bundled CI job to set this compile time option to perform more checks:

https://github.com/diesel-rs/diesel/blob/bcf28baa8a2be82aa46b79aa111062363e23e6d5/.github/workflows/ci.yml#L460

We already build our own copy of libsqlite3 there via the bundled feature of libsqlite3-sys. We can use the LIBSQLITE3_FLAGS environment variable to pass in additional compile time flags for libsqlite3

This might uncover test failures that need to be triaged and fixed separately.

Checklist

  • I have already looked over the issue tracker and the discussion forum for similar possible closed issues.

  • This issue can be reproduced on Rust's stable channel. (Please submit the issue in the Rust issue tracker instead if that's not the case)

  • This issue can be reproduced without requiring a third party crate