---
title: "pyo3-build-config 0.30.1 Breaking Changes on crates.io"
description: "What each pyo3-build-config release removed, renamed or changed: 39 breaking changes in 4 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/pyo3-build-config
last_updated: 2026-12-04
---

# 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

Latest version `0.30.1`, released October 14, 2026. [Source repository](https://github.com/pyo3/pyo3)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.28.0](#v-0-28-0) to [0.30.1](#v-0-30-1): 37 breaking changes in 3 versions.

## pyo3-build-config 0.30.1 breaking changes

pyo3-build-config 0.30.1, released October 14, 2026: 26 breaking changes.

- **Removed** `AsPyPointer`  

Use as_any instead of as_ref for identity comparison calls. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Removed** `From<char.DecodeUtf16Error> for PyErr`  

Construct a UnicodeDecodeError manually with PyUnicodeDecodeError::new_err. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Removed** `gil-refs`  

The GIL Refs API is removed; migrate to the Bound API using names such as PyTuple::new. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Removed** `IntoPyDict.into_py_dict_bound`  

Implement into_py_dict instead of into_py_dict_bound; the new method returns PyResult. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Removed** `PyBuffer.as_fortran_mut_slice`  

Use copy_to_fortran_slice and copy_from_fortran_slice, or as_fortran_slice_ptr, instead. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Removed** `PyBuffer.as_fortran_slice`  

Use copy_to_fortran_slice and copy_from_fortran_slice, or as_fortran_slice_ptr, instead. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **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](https://pyo3.rs/v0.30.0/migration.html)
- **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](https://pyo3.rs/v0.30.0/migration.html)
- **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](https://pyo3.rs/v0.30.0/migration.html)
- **Renamed** `downcast`  

Replace .downcast() with .cast() and DowncastError with CastError. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Renamed** `GILOnceCell`  

Use PyOnceLock, which guarantees single initialization and may deadlock if racy initialization was relied on. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Renamed** `Python.with_gil`  

Python::with_gil, Python::allow_threads and prepare_freethreaded_python were renamed. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Behavior changed**  

Windows builds no longer need link libraries; the generate-import-lib feature is now a no-op. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Behavior changed** `FromPyObject`  

FromPyObject takes an extra lifetime, extract_bound is replaced by extract, and an Error associated type was added. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Behavior changed** `Py.clone`  

Clone for Py\<T> requires the py-clone feature and panics if called without the GIL. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Behavior changed** `PyMemoryError`  

Converting PyMemoryError to io::Error now yields ErrorKind::OutOfMemory, and the reverse conversion yields PyMemoryError. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **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](https://pyo3.rs/v0.30.0/migration.html)
- **Behavior changed** `PyTryFrom`  

PyAny::downcast uses PyTypeCheck; switch try_from calls to downcast. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **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](https://pyo3.rs/v0.30.0/migration.html)
- **Behavior changed** `PyTypeCheck`  

Implementors of PyTypeCheck must now use an unsafe impl. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Behavior changed** `Vec<u8>`  

Vec\<u8>, \[u8; N\] and SmallVec<\[u8; N\]> return values now become PyBytes rather than PyList. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Default changed** `pymodule`  

Modules automatically allow free-threaded Python unless they declare gil_used = true. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Signature changed** `PyCFunction.new_closure`  

PyCFunction::new_closure now requires the closure to be Sync. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Signature changed** `PyClassGuardMap`  

PyClassGuardMap has been split into PyClassGuardMap and PyClassGuardMapMut. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Signature changed** `PyClassGuardMut.as_super`  

PyClassGuardMut::as_super now returns PyClassGuardMutSuper instead of a mutable reference. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)
- **Signature changed** `with_critical_section_mutex2`  

The closure now receives an Option\<EnteredCriticalSection> as its second argument. [pyo3.rs](https://pyo3.rs/v0.30.0/migration.html)

## pyo3-build-config 0.30.0 breaking changes

pyo3-build-config 0.30.0, released October 14, 2026: 2 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](https://github.com/PyO3/pyo3/releases/tag/v0.30.0)
- **Configuration changed**  

Builds now require Rust 1.85 or later, so older Rust toolchains must be upgraded. [github.com](https://github.com/PyO3/pyo3/releases/tag/v0.30.0)

## pyo3-build-config 0.29.0 breaking changes

pyo3-build-config 0.29.0, released June 11, 2026: 9 breaking changes.

- **Removed**  

The experimental free-threaded Python 3.13t build is no longer supported; use the 3.14t build instead. [github.com](https://github.com/PyO3/pyo3/releases/tag/v0.29.0)
- **Removed**  

Many private CPython APIs with the \_Py underscore prefix are no longer exported by pyo3-ffi; code using them must change. [github.com](https://github.com/PyO3/pyo3/releases/tag/v0.29.0)
- **Removed**  

Python 3.7 is no longer supported, so projects on that version must move to a newer Python before upgrading. [github.com](https://github.com/PyO3/pyo3/releases/tag/v0.29.0)
- **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](https://crates.io/crates/pyo3-build-config/0.29.0)
- **Removed** `pyo3_build_config::PythonVersion::PY315`  

pyo3_build_config::PythonVersion::PY315 was removed in pyo3-build-config 0.29.0 [crates.io](https://crates.io/crates/pyo3-build-config/0.29.0)
- **Behavior changed**  

Crates using pyo3_build_config must now declare a direct dependency on pyo3 or pyo3-ffi. [github.com](https://github.com/PyO3/pyo3/releases/tag/v0.29.0)
- **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](https://github.com/PyO3/pyo3/releases/tag/v0.29.0)
- **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](https://pyo3.rs/v0.29.0/migration.html)
- **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](https://github.com/PyO3/pyo3/releases/tag/v0.29.0)

## pyo3-build-config 0.28.0 breaking changes

pyo3-build-config 0.28.0, released February 1, 2026: 2 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](https://github.com/PyO3/pyo3/releases/tag/v0.28.0)
- **Default changed**  

The minimum supported Rust version is now Rust 1.83. Builds with older Rust toolchains will no longer work. [github.com](https://github.com/PyO3/pyo3/releases/tag/v0.28.0)

## Related packages

- [pyo3](https://since.dev/packages/crates/pyo3.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
