From ce585ee8ac71be832c364bfaf11d78b4e81c1917 Mon Sep 17 00:00:00 2001 From: Kristopher Wuollett Date: Sat, 5 Jul 2025 01:33:02 +0000 Subject: [PATCH 1/2] feat: update libsqlite3-sys to 0.34.0 (#3921) --- Cargo.toml | 4 ++-- sqlx-sqlite/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ed4cae93ca..c5da6081ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -194,13 +194,13 @@ rand_xoshiro = "0.6.0" hex = "0.4.3" tempfile = "3.10.1" criterion = { version = "0.5.1", features = ["async_tokio"] } -libsqlite3-sys = { version = "0.30.1" } +libsqlite3-sys = { version = "0.34.0" } # If this is an unconditional dev-dependency then Cargo will *always* try to build `libsqlite3-sys`, # even when SQLite isn't the intended test target, and fail if the build environment is not set up for compiling C code. [target.'cfg(sqlite_test_sqlcipher)'.dev-dependencies] # Enable testing with SQLCipher if specifically requested. -libsqlite3-sys = { version = "0.30.1", features = ["bundled-sqlcipher"] } +libsqlite3-sys = { version = "0.34.0", features = ["bundled-sqlcipher"] } # Common lint settings for the workspace [workspace.lints.clippy] diff --git a/sqlx-sqlite/Cargo.toml b/sqlx-sqlite/Cargo.toml index a84dccc6dc..615ceca889 100644 --- a/sqlx-sqlite/Cargo.toml +++ b/sqlx-sqlite/Cargo.toml @@ -61,7 +61,7 @@ serde = { version = "1.0.145", features = ["derive"], optional = true } regex = { version = "1.5.5", optional = true } [dependencies.libsqlite3-sys] -version = "0.30.1" +version = "0.34.0" default-features = false features = [ "pkg-config", From 78c0c1391b729459380656c9c5af56b7151e4940 Mon Sep 17 00:00:00 2001 From: Kristopher Wuollett Date: Tue, 8 Jul 2025 10:06:56 +0000 Subject: [PATCH 2/2] fix(sqlx-sqlite): force prettyplease version for C-string literals --- sqlx-sqlite/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sqlx-sqlite/Cargo.toml b/sqlx-sqlite/Cargo.toml index 615ceca889..d08ee9ed5d 100644 --- a/sqlx-sqlite/Cargo.toml +++ b/sqlx-sqlite/Cargo.toml @@ -75,6 +75,11 @@ workspace = true [dev-dependencies] sqlx = { workspace = true, default-features = false, features = ["macros", "runtime-tokio", "tls-none", "sqlite"] } +[build-dependencies] +# FIXME: https://github.com/rusqlite/rusqlite/issues/1716 +# force `prettyplease` to a minimum version that supports C-string literals +prettyplease = "0.2.18" + [lints] workspace = true