Repository navigation
chore(rosetta): update rusqlite to 0.43 and tokio-rusqlite to 0.10 - #12232
Merged
Merged
Conversation
Moves rusqlite from 0.42.0 to 0.43.0 and tokio-rusqlite from 0.9.0 to 0.10.0 in both the Cargo and the Bazel builds. tokio-rusqlite 0.10.0 is the first release that accepts rusqlite 0.43 (it requires ^0.43.0). libsqlite3-sys stays at 0.40.0, so the bundled SQLite stays at 3.54.1. rusqlite 0.43 makes prepare, prepare_cached and execute reject empty or comment-only SQL with Error::Empty. Every SQL string that ICP and ICRC Rosetta pass to them is non-empty, so no Rust code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the SQLite dependency update.
No open issues 🎉
What changed in this PR
Updates Rosetta’s SQLite dependencies across Cargo and Bazel, following up on #12194 without changing Rust source code.
Changes:
- Upgrades rusqlite from 0.42.0 to 0.43.0 and tokio-rusqlite from 0.9.0 to 0.10.0.
- Synchronizes dependency versions and checksums across all three lockfiles.
- Preserves existing features and the bundled SQLite version.
| File | Description |
|---|---|
rs/rosetta-api/icrc1/Cargo.toml |
Updates ICRC Rosetta’s tokio-rusqlite requirement. |
Cargo.toml |
Updates the workspace rusqlite requirement. |
Cargo.lock |
Records both upgraded packages and checksums. |
Cargo.Bazel.toml.lock |
Records matching versions for Bazel. |
Cargo.Bazel.json.lock |
Updates Bazel package references, download URLs, and checksums. |
bazel/rust.MODULE.bazel |
Aligns Bazel dependency requirements with Cargo. |
Review effort: Balanced
basvandijk
marked this pull request as ready for review
November 23, 2026 21:30
|
✅ No security or compliance issues detected. No reviewable source files (1 skipped) up to d9cca34. Security Overview
Detected Code Changes
|
rzakrzyk
approved these changes
Nov 23, 2026
basvandijk
enabled auto-merge
November 23, 2026 21:37
Resolve the Cargo.Bazel.json.lock checksum conflict by repinning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
auto-merge was automatically disabled
November 23, 2026 21:40
Pull request was closed
basvandijk
enabled auto-merge
November 23, 2026 21:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates rusqlite from 0.42.0 to 0.43.0 and tokio-rusqlite from 0.9.0 to 0.10.0 in both the Cargo and the Bazel build, so Rosetta, their only user, stays on the latest releases. This follows up on #12194, which stopped at rusqlite 0.42 because no tokio-rusqlite release accepted 0.43 before 0.10.0.
Changes
Cargo.toml: rusqlite0.42.0→0.43.0(release notes).bazel/rust.MODULE.bazel: rusqlite^0.42.0→^0.43.0and tokio-rusqlite^0.9→^0.10.rs/rosetta-api/icrc1/Cargo.toml: tokio-rusqlite0.9→0.10. tokio-rusqlite 0.10.0 only raises its rusqlite requirement to^0.43.0; its code is the same as in 0.9.0.Cargo.lock,Cargo.Bazel.toml.lockandCargo.Bazel.json.lock: only rusqlite and tokio-rusqlite move.Behaviour changes
Rebuilt with rusqlite 0.43.0:
//rs/rosetta-api/icp:ic-rosetta-api,:ic-rosetta-api-rosetta-blocksand the image:rosetta_image;//rs/rosetta-api/icrc1:ic-icrc-rosetta-binand the image:ic_icrc_rosetta_image;//rs/rosetta-api/icrc1/client:ic-icrc-rosetta-client-bin;ic-rosetta-api.The bundled SQLite stays 3.54.1, because libsqlite3-sys stays at 0.40.0.
Empty SQL (Reject empty or comment only SQL rusqlite/rusqlite#1956):
prepare,prepare_cached,execute,query_rowandquery_onenow return the newError::Empty("SQL is empty or comment only") for SQL that holds only whitespace,;or comments. In 0.42,preparereturned a statement that failed withSQLITE_MISUSEwhen stepped. Rosetta passes no such SQL. On master 87617d5, in the Rosetta files that use rusqlite, every SQL argument to these calls is either a non-empty statement or starts with fixedSELECT,INSERT,DELETEorCREATE INDEXtext.FYI @dfinity/defi, who own
rs/rosetta-api.🤖 Generated with Claude Code