PyO3 v0.14.2 Release Notes
Release Date: 2021-08-09 // over 2 years ago-
โ Added
- โ Add
indexmap
feature to addToPyObject
,IntoPy
andFromPyObject
implementations forindexmap::IndexMap
. #1728 - ๐ Add
pyo3_build_config::add_extension_module_link_args()
to use in build scripts to set linker arguments (for macOS). #1755 - Add
Python::with_gil_unchecked()
unsafe variation ofPython::with_gil()
to allow obtaining aPython
in scenarios wherePython::with_gil()
would fail. #1769
๐ Changed
PyErr::new
no longer acquires the Python GIL internally. #1724- ๐ Reverted PyO3 0.14.0's use of
cargo:rustc-cdylib-link-arg
in its build script, as Cargo unintentionally allowed crates to pass linker args to downstream crates in this way. Projects supporting macOS may need to restore.cargo/config.toml
files. #1755
๐ Fixed
- ๐ Fix regression in 0.14.0 rejecting usage of
#[doc(hidden)]
on structs and functions annotated with PyO3 macros. #1722 - ๐ Fix regression in 0.14.0 leading to incorrect code coverage being computed for
#[pyfunction]
s. #1726 - ๐ Fix incorrect FFI definition of
Py_Buffer
on PyPy. #1737 - ๐ Fix incorrect calculation of
dictoffset
on 32-bit Windows. #1475 - ๐ Fix regression in 0.13.2 leading to linking to incorrect Python library on Windows "gnu" targets. #1759
- ๐ Fix compiler warning: deny trailing semicolons in expression macro. #1762
- Fix incorrect FFI definition of
Py_DecodeLocale
. The 2nd argument is now*mut Py_ssize_t
instead ofPy_ssize_t
. #1766
- โ Add