Skip to content

chore: update rusqlite from 0.37 to 0.40#8413

Draft
link2xt wants to merge 2 commits into
mainfrom
link2xt/rusqlite-0.40
Draft

chore: update rusqlite from 0.37 to 0.40#8413
link2xt wants to merge 2 commits into
mainfrom
link2xt/rusqlite-0.40

Conversation

@link2xt

@link2xt link2xt commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Largest change comes from removal of u64 and usize serialization in rusqlite 0.38.0.
It is possible to enable it back with fallible_uint feature as suggested in rusqlite/rusqlite#1732, but there is a good reason for this change
as it may result in unexpected failures when
trying to store u64 integers that don't fit in i64, so I don't enable it back.
With this change conversions between i64 and u64 are explicit.

Using less usize is generally good as its size
differs on 32-bit platforms that are rarely tested but still supported and we have changes that reduce its usage such as 0defa11,
014d2ac etc.

@link2xt link2xt marked this pull request as draft July 12, 2026 10:18
@link2xt

link2xt commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator Author

Well, this requires MSRV 1.95 because this is where cfg_select! was stabilized: https://blog.rust-lang.org/2026/04/16/Rust-1.95.0/
Probably this is why dependabot did not update the dependency so far.

@link2xt link2xt force-pushed the link2xt/rusqlite-0.40 branch 3 times, most recently from ec2b088 to 4deae62 Compare July 12, 2026 10:45
@link2xt link2xt changed the base branch from main to link2xt/rust-1.97 July 12, 2026 11:21
Base automatically changed from link2xt/rust-1.97 to main July 12, 2026 13:10
link2xt added 2 commits July 12, 2026 13:10
Largest change comes from removal of u64 and usize serialization
in rusqlite 0.38.0.
It is possible to enable it back with `fallible_uint` feature
as suggested in rusqlite/rusqlite#1732,
but there is a good reason for this change
as it may result in unexpected failures when
trying to store u64 integers that don't fit in i64,
so I don't enable it back.
With this change conversions between i64 and u64 are explicit.

Using less `usize` is generally good as its size
differs on 32-bit platforms that are rarely tested
but still supported and we have changes that reduce its usage
such as 0defa11,
014d2ac etc.
@link2xt link2xt force-pushed the link2xt/rusqlite-0.40 branch from 4deae62 to da3f434 Compare July 12, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant