Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: upgrade rusqlite 0.31 → 0.33 #6566

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ErichDonGubler
Copy link
Contributor

@ErichDonGubler ErichDonGubler commented Jan 23, 2025

Pull Request checklist

  • Breaking changes: This PR follows our breaking change policy
    • This PR follows the breaking change policy:
      • This PR has no breaking API changes, or
      • There are corresponding PRs for our consumer applications that resolve the breaking changes and have been approved
  • Quality: This PR builds and tests run cleanly
    • Note:
      • For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
      • If this pull request includes a breaking change, consider cutting a new release after merging.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGELOG.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due diligence applied in selecting them.

Branch builds: add [firefox-android: branch-name] to the PR title.

@ErichDonGubler
Copy link
Contributor Author

Context: This is part of landing an upgrade to hashbrown that affects a lot of crates in mozilla-central. I'm hoping the migration isn't too bad. 😅

@mhammond
Copy link
Member

This will require bumping libsqlite3-sys to the matching version, which appears to be "0.31.0"

@ErichDonGubler ErichDonGubler force-pushed the rusqlite-0.33 branch 2 times, most recently from 8f9d20e to 28562d4 Compare January 24, 2025 02:56
@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler

This comment was marked as resolved.

@glandium
Copy link
Contributor

permits a minimum Rust version of 1.78.

Correction, it's 1.76 currently. It's bumpable, but I would also argue that bindgen should not force a MSRV onto people.

@glandium
Copy link
Contributor

I don't see a bindgen change in your patch, though, so why would it start relying on 1.82 features out of the blue?

@glandium
Copy link
Contributor

This comes down to rust-lang/rust-bindgen#3052

@glandium
Copy link
Contributor

Note that if you don't touch bindgen on central, you won't be affected.

@glandium
Copy link
Contributor

Ah, it's the pre-generated bindings for libsqlite3-sys that cause problems.

@glandium
Copy link
Contributor

Opened rusqlite/rusqlite#1625.

@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler
Copy link
Contributor Author

ErichDonGubler commented Jan 24, 2025

@glandium: Unfortunately, the maintainer of cc has marked that bug with an invalid tag. It seems unlikely that we will persuade them to revert that change. 🫤

Opened rusqlite/rusqlite#1625.

Given this and that rusqlite is starting to use #[expect(…) (like WGPU has been hoping to), perhaps this is a strong enough reason to bump mozilla-central?

@glandium
Copy link
Contributor

Add the missing symbol to third_party/sqlite3/src/sqlite.symbols

@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler
Copy link
Contributor Author

ErichDonGubler commented Jan 31, 2025

With the queuing of patches for an upgrade of the minimum Rust version in mozilla-central to land via bug 1945020, I believe this is now ready to come out of draft, with merging a question of timing with review for the remaining patches in bug 1943149. 😀

@ErichDonGubler ErichDonGubler marked this pull request as ready for review January 31, 2025 03:20
@ErichDonGubler
Copy link
Contributor Author

☝🏻 Given this, it seems the run-tests-min-supported-version check needs to be updated, but is not part of this repo? 🤔

@ErichDonGubler

This comment was marked as resolved.

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.

3 participants