Upgrading pyo3 0.27 to 0.28
Breaking0.27.2 → 0.28.3Security1Platform1New3Changed1Fixed8Other3
SecurityType confusion when accessing data from sublasses of subclasses of native types with `abi3` feature targeting Python 3.12 and upGHSA-47qc-857f-7w7f ↗
BreakingUpgrade verdict
A platform requirement change and a security fix.
In plain terms
- Support for subclassing many Python types with the abi3 feature (requires Python 3.12+).
- Type confusion when accessing data from sublasses of subclasses of native types with `abi3` feature targeting Python 3.12 and up
Must act 2 items need code or config changes
pyo3 publishes an official migration guide for version 0.28. It covers more than the release notes do.
Migration guide ↗Rust requirement changed in 0.28.0: 1.74 → 1.83.
What you must change
Security1
Type confusion when accessing data from sublasses of subclasses of native types with
abi3 feature targeting Python 3.12 and upPlatform1
Support for subclassing many Python types with the abi3 feature (requires Python 3.12+).
abi3