Bump pyo3 to 0.29 (fix RUSTSEC-2026-0176/0177)#23
Merged
Conversation
Resolves RUSTSEC-2026-0176 and RUSTSEC-2026-0177 (out-of-bounds read and missing Sync bound in pyo3 0.24). pyo3 0.26 renamed Python::allow_threads to Python::detach; 0.29 removed the old alias, so all 19 call sites are updated. No public binding API change. Closes #22.
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.
Summary
Closes #22. Upgrades
rustez-py'spyo3dependency from0.24to0.29, clearing the two advisories that were turning thecargo auditCI step red:nth/nth_backforPyList/PyTupleiteratorsSyncbound onPyCFunction::new_closureclosuresMigration
pyo3 0.26 renamed
Python::allow_threads→Python::detach, and 0.29 removed the old alias. The only code change is the mechanical rename of all 19py.allow_threads(...)call sites insrc/lib.rstopy.detach(...). No public binding API changed — Python callers are unaffected. The rest of the API surface (#[pyclass],#[pymethods],Bound,*::new_err) was already on the modern API.Test Plan
cargo clippy -p rustez-py -- --deny warningscleancargo check(workspace) cleancargo audit --ignore RUSTSEC-2023-0071exits 0 (both pyo3 advisories gone)scripts/check_versions.py— manifests still aligned at 0.12.0detachis a pure rename ofallow_threads, semantics identical)🤖 Generated with Claude Code