Skip to content

Conversation

@onethumb
Copy link
Contributor

@onethumb onethumb commented May 1, 2025

The Problem

We had rust-version = 1.70 with notes about why this was the minimum from a compiler point-of-view, but neglected to take into account the crates dependency tree, which requires 1.81 or later.

The Solution

Use rust-version = 1.81

Changes

  • Use 0.70 for bindgen, the latest version to support 1.81.
  • Update rust-version to 1.81.
  • Regenerate the C bindings to be 1.81 compatible (don't use unsafe extern).
  • Update GitHub Actions workflows to test 1.81, stable, and nightly.

Planned version bump

  • Which: PATCH
  • Why: non-breaking bug fix

Notes

There are no logic changes here, just improved and more clear tooling.

Use bindgen 0.70, since 0.71 adds ‘unsafe extern’ to generated
C bindings, which isn’t supported until 1.82.
‘unsafe extern’ wasn’t supported until Rust 1.82.
Including 1.81, our minimum, plus stable and nightly.
Pinned to v1.12.0’s commit hash,
9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9
@onethumb onethumb merged commit 60b8901 into main May 1, 2025
6 checks passed
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