Skip to content

chore(rosetta): update rusqlite to 0.43 and tokio-rusqlite to 0.10 - #12232

Merged
basvandijk merged 2 commits into
masterfrom
bas/bump-rusqlite-0.43
Nov 23, 2026
Merged

basvandijk merged 2 commits into
masterfrom
bas/bump-rusqlite-0.43

Conversation

@basvandijk

@basvandijk basvandijk commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

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: rusqlite 0.42.0 → 0.43.0 (release notes).
  • bazel/rust.MODULE.bazel: rusqlite ^0.42.0 → ^0.43.0 and tokio-rusqlite ^0.9 → ^0.10.
  • rs/rosetta-api/icrc1/Cargo.toml: tokio-rusqlite 0.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.lock and Cargo.Bazel.json.lock: only rusqlite and tokio-rusqlite move.

Behaviour changes

  • Rebuilt with rusqlite 0.43.0:

    • ICP Rosetta: //rs/rosetta-api/icp:ic-rosetta-api, :ic-rosetta-api-rosetta-blocks and the image :rosetta_image;
    • ICRC Rosetta: //rs/rosetta-api/icrc1:ic-icrc-rosetta-bin and the image :ic_icrc_rosetta_image;
    • the ICRC Rosetta client //rs/rosetta-api/icrc1/client:ic-icrc-rosetta-client-bin;
    • the system-test binaries, whose driver links 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_row and query_one now return the new Error::Empty ("SQL is empty or comment only") for SQL that holds only whitespace, ; or comments. In 0.42, prepare returned a statement that failed with SQLITE_MISUSE when 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 fixed SELECT, INSERT, DELETE or CREATE INDEX text.

FYI @dfinity/defi, who own rs/rosetta-api.

🤖 Generated with Claude Code

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>
@basvandijk basvandijk added the CI_ALL_BAZEL_TARGETS Runs all bazel targets label Nov 22, 2026
@github-actions github-actions Bot added the chore label Nov 22, 2026
@basvandijk
basvandijk requested review from a team and a balanced review from Copilot November 22, 2026 17:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@mbjorkqvist mbjorkqvist left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @basvandijk!

@basvandijk
basvandijk marked this pull request as ready for review November 23, 2026 21:30
@zeropath-ai

zeropath-ai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ No security or compliance issues detected. No reviewable source files (1 skipped) up to d9cca34.

Security Overview
Detected Code Changes
Change Type Relevant files
Upgrade/Dependency updates ► Cargo.Bazel.json.lock
    Update checksums and versions for rusqlite 0.43.0, tokio-rusqlite 0.10.0; adjust related references

► Cargo.Bazel.toml.lock
    Bump rusqlite to 0.43.0 and tokio-rusqlite to 0.10.0; update checksums

► Cargo.lock
    Bump rusqlite to 0.43.0 and tokio-rusqlite to 0.10.0; update checksums

► Cargo.toml
    rusqlite version from 0.42.0 to 0.43.0

► bazel/rust.MODULE.bazel
    Update rusqlite to ^0.43.0 and tokio-rusqlite to ^0.10

► rs/rosetta-api/icrc1/Cargo.toml
    tokio-rusqlite = "0.10"
Bug Fix / Maintenance ► None explicitly identified beyond dependency version bumps

@basvandijk
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>
Copilot AI balanced review requested due to automatic review settings November 23, 2026 21:40
@basvandijk basvandijk removed the CI_ALL_BAZEL_TARGETS Runs all bazel targets label Nov 23, 2026
@basvandijk basvandijk closed this Nov 23, 2026
auto-merge was automatically disabled November 23, 2026 21:40

Pull request was closed

@basvandijk basvandijk reopened this Nov 23, 2026
@basvandijk
basvandijk enabled auto-merge November 23, 2026 21:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the SQLite dependency update.

No open issues 🎉

Review effort: Balanced

@basvandijk
basvandijk added this pull request to the merge queue Nov 23, 2026
Merged via the queue into master with commit 1675f59 Nov 23, 2026
63 of 82 checks passed
@basvandijk
basvandijk deleted the bas/bump-rusqlite-0.43 branch November 23, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants