pyo3-build-config breaking changes
pyo3-build-config 0.30.1 (October 14, 2026) is its newest release with breaking changes, 26 of them. The first: Removed AsPyPointer. Every breaking API change we have recorded in pyo3-build-config on crates.io: 39 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.30.1, released October 14, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
pyo3-build-config 0.30.1 breaking changes
- Removed
AsPyPointer
Use as_any instead of as_ref for identity comparison calls. pyo3.rs - Removed
From<char.DecodeUtf16Error> for PyErr
Construct a UnicodeDecodeError manually with PyUnicodeDecodeError::new_err. pyo3.rs - Removed
gil-refs
The GIL Refs API is removed; migrate to the Bound API using names such as PyTuple::new. pyo3.rs - Removed
IntoPyDict.into_py_dict_bound
Implement into_py_dict instead of into_py_dict_bound; the new method returns PyResult. pyo3.rs - Removed
PyBuffer.as_fortran_mut_slice
Use copy_to_fortran_slice and copy_from_fortran_slice, or as_fortran_slice_ptr, instead. pyo3.rs - Removed
PyBuffer.as_fortran_slice
Use copy_to_fortran_slice and copy_from_fortran_slice, or as_fortran_slice_ptr, instead. pyo3.rs - Removed
PyBuffer.as_mut_slice
Use copy_to_slice and copy_from_slice to edit buffer contents, or as_slice_ptr for a raw pointer. pyo3.rs - Removed
PyBuffer.as_slice
The as_slice, as_mut_slice, as_fortran_slice and as_fortran_mut_slice methods were removed as unsound. Use copy_to_slice and copy_from_slice, or as_slice_ptr, instead. pyo3.rs - Removed
PyCapsule.new_with_destructor
PyCapsule::new_with_destructor now requires a 'static destructor, PyCFunction::new_closure requires Sync closures, and other signatures changed; users relying on unsound behavior must adjust. pyo3.rs - Renamed
downcast
Replace .downcast() with .cast() and DowncastError with CastError. pyo3.rs - Renamed
GILOnceCell
Use PyOnceLock, which guarantees single initialization and may deadlock if racy initialization was relied on. pyo3.rs - Renamed
Python.with_gil
Python::with_gil, Python::allow_threads and prepare_freethreaded_python were renamed. pyo3.rs - Behavior changed
Windows builds no longer need link libraries; the generate-import-lib feature is now a no-op. pyo3.rs - Behavior changed
FromPyObject
FromPyObject takes an extra lifetime, extract_bound is replaced by extract, and an Error associated type was added. pyo3.rs - Behavior changed
Py.clone
Clone for Py<T> requires the py-clone feature and panics if called without the GIL. pyo3.rs - Behavior changed
PyMemoryError
Converting PyMemoryError to io::Error now yields ErrorKind::OutOfMemory, and the reverse conversion yields PyMemoryError. pyo3.rs - Behavior changed
pyo3-build-config
pyo3-build-config no longer inlines configuration and must be used alongside a direct dependency on pyo3 or pyo3-ffi. pyo3.rs - Behavior changed
PyTryFrom
PyAny::downcast uses PyTypeCheck; switch try_from calls to downcast. pyo3.rs - Behavior changed
PyType.name
PyType::name now returns PyResult of a Bound PyString matching __name__; use fully_qualified_name for the dotted path. pyo3.rs - Behavior changed
PyTypeCheck
Implementors of PyTypeCheck must now use an unsafe impl. pyo3.rs - Behavior changed
Vec<u8>
Vec<u8>, [u8; N] and SmallVec<[u8; N]> return values now become PyBytes rather than PyList. pyo3.rs - Default changed
pymodule
Modules automatically allow free-threaded Python unless they declare gil_used = true. pyo3.rs - Signature changed
PyCFunction.new_closure
PyCFunction::new_closure now requires the closure to be Sync. pyo3.rs - Signature changed
PyClassGuardMap
PyClassGuardMap has been split into PyClassGuardMap and PyClassGuardMapMut. pyo3.rs - Signature changed
PyClassGuardMut.as_super
PyClassGuardMut::as_super now returns PyClassGuardMutSuper instead of a mutable reference. pyo3.rs - Signature changed
with_critical_section_mutex2
The closure now receives an Option<EnteredCriticalSection> as its second argument. pyo3.rs
pyo3-build-config 0.30.0 breaking changes
- Removed
Python 3.8 is no longer supported, so projects on Python 3.8 must move to a newer Python version. github.com - Configuration changed
Builds now require Rust 1.85 or later, so older Rust toolchains must be upgraded. github.com
pyo3-build-config 0.29.0 breaking changes
- Removed
The experimental free-threaded Python 3.13t build is no longer supported; use the 3.14t build instead. github.com - Removed
Many private CPython APIs with the _Py underscore prefix are no longer exported by pyo3-ffi; code using them must change. github.com - Removed
Python 3.7 is no longer supported, so projects on that version must move to a newer Python before upgrading. github.com - Removed
pyo3_build_config::InterpreterConfig::generate_import_libs
pyo3_build_config::InterpreterConfig::generate_import_libs was removed in pyo3-build-config 0.29.0 crates.io - Removed
pyo3_build_config::PythonVersion::PY315
pyo3_build_config::PythonVersion::PY315 was removed in pyo3-build-config 0.29.0 crates.io - Behavior changed
Crates using pyo3_build_config must now declare a direct dependency on pyo3 or pyo3-ffi. github.com - Behavior changed
Several pyo3-ffi definitions were corrected in ways that are breaking; code relying on the old definitions may fail to compile. github.com - Configuration changed
pyo3-build-config now loads the configuration resolved by pyo3-ffi's build script instead of inlining it, so crates using it must also depend directly on pyo3 or pyo3-ffi. pyo3.rs - Signature changed
PyCFunction.new_closure
Closures passed to PyCFunction::new_closure must now be Sync to fix a soundness issue; update closures that are not Sync. github.com
pyo3-build-config 0.28.0 breaking changes
- Behavior changed
The #[pymodule] macro now uses PEP 489 multi-phase initialization internally. The release says this should have no immediate functional impact. github.com - Default changed
The minimum supported Rust version is now Rust 1.83. Builds with older Rust toolchains will no longer work. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.