From 49847b1e4aa249a4dfef670be06f7934fb8cb19d Mon Sep 17 00:00:00 2001 From: Kristopher Wuollett Date: Tue, 8 Jul 2025 10:37:38 +0000 Subject: [PATCH] feat: update libsqlite3-sys to 0.35.0 for SQLite 3.50.2 (#3926) --- Cargo.lock | 34 +++++++++++++++++++++++++++++----- Cargo.toml | 4 ++-- sqlx-sqlite/Cargo.toml | 2 +- 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c0ef3b0ca0..3436e54166 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -337,7 +337,7 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "923ded50f602b3007e5e63e3f094c479d9c8a9b42d7f4034e4afe456aa48bfd2" dependencies = [ - "bindgen", + "bindgen 0.69.5", "cc", "cmake", "dunce", @@ -482,12 +482,30 @@ dependencies = [ "proc-macro2", "quote", "regex", - "rustc-hash", + "rustc-hash 1.1.0", "shlex", "syn 2.0.96", "which", ] +[[package]] +name = "bindgen" +version = "0.72.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f72209734318d0b619a5e0f5129918b848c416e122a3c4ce054e03cb87b726f" +dependencies = [ + "bitflags 2.7.0", + "cexpr", + "clang-sys", + "itertools 0.13.0", + "proc-macro2", + "quote", + "regex", + "rustc-hash 2.1.1", + "shlex", + "syn 2.0.96", +] + [[package]] name = "bit-vec" version = "0.6.3" @@ -2068,11 +2086,11 @@ dependencies = [ [[package]] name = "libsqlite3-sys" -version = "0.30.1" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149" +checksum = "133c182a6a2c87864fe97778797e46c7e999672690dc9fa3ee8e241aa4a9c13f" dependencies = [ - "bindgen", + "bindgen 0.72.0", "cc", "pkg-config", "vcpkg", @@ -2989,6 +3007,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + [[package]] name = "rustix" version = "0.38.43" diff --git a/Cargo.toml b/Cargo.toml index ed4cae93ca..fb3ca8358b 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.35.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.35.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..594af39899 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.35" default-features = false features = [ "pkg-config",