Skip to content

Update Rust crate pyo3 to v0.24.1#155

Merged
simu merged 1 commit intomainfrom
renovate/pyo3-0.x
Apr 4, 2025
Merged

Update Rust crate pyo3 to v0.24.1#155
simu merged 1 commit intomainfrom
renovate/pyo3-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 31, 2025

This PR contains the following updates:

Package Type Update Change
pyo3 dependencies patch =0.24.0 -> =0.24.1

Release Notes

pyo3/pyo3 (pyo3)

v0.24.1

Compare Source

This release is a security fix for the PyString::from_object method, which passed &str data to the Python C API without checking for a terminating nul byte. All historical PyO3 versions are affected, and we recommend you upgrade if you are using PyString::from_object. Thank you to @​vthib for the report and @​Dr-Emann for the fix. A RUSTSEC advisory will be published shortly.

Aside from the security fix, this release contains a number of other non-breaking additions:

  • An abi3-py313 feature to support compiling with the Python 3.13 stable ABI.
  • PyAnyMethods::getattr_opt to get optional attributes without paying the cost of a Python exception when the attribute in question does not exist.
  • Constructor for PyInt::new.
  • with_critical_section2 for locking two objects at the same time on the free-threaded build.
  • Fix for a PyO3 0.24.0 regression with Option<&str> and Option<&T> (where T: PyClass) function arguments no longer being permitted

There are also a few other small bug fixes for edge cases, mostly related to compile errors from PyO3's macro code.

Thank you to the following contributors for the improvements:

@​bschoenmaeckers
@​davidhewitt
@​Dr-Emann
@​emmagordon
@​epontan
@​Icxolu
@​IvanIsCoding
@​jelmer
@​jonaspleyer
@​ngoldbaum
@​Owen-CH-Leung
@​Tpt
@​Trolldemorted
@​XuehaiPan


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependency label Mar 31, 2025
@github-actions
Copy link
Copy Markdown

Benchmark for 30dbc1a

Click to view benchmark
Test Base PR %
Reclass::inventory() multi-threaded 1752.4±121.60µs 1725.4±49.78µs -1.54%
Reclass::inventory() single-threaded 3.6±0.07ms 3.6±0.05ms 0.00%

@renovate renovate Bot force-pushed the renovate/pyo3-0.x branch from 38f38df to f18f2a5 Compare April 3, 2025 14:09
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 3, 2025

Benchmark for e8c6fc8

Click to view benchmark
Test Base PR %
Reclass::inventory() multi-threaded 1784.5±183.15µs 1736.2±57.93µs -2.71%
Reclass::inventory() single-threaded 3.6±0.13ms 3.6±0.14ms 0.00%

@renovate renovate Bot force-pushed the renovate/pyo3-0.x branch from f18f2a5 to 22125e3 Compare April 4, 2025 07:18
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 4, 2025

Benchmark for ef07ee0

Click to view benchmark
Test Base PR %
Reclass::inventory() multi-threaded 1764.3±125.26µs 1751.6±55.88µs -0.72%
Reclass::inventory() single-threaded 3.6±0.14ms 3.6±0.04ms 0.00%

@simu simu merged commit 13d4c0c into main Apr 4, 2025
22 checks passed
@simu simu deleted the renovate/pyo3-0.x branch April 4, 2025 07:31
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.

1 participant