Skip to content

Commit 65b6693

Browse files
committed
Extend changelog w.r.t. capsule-based dynamic borrow checking.
1 parent cc7b1c9 commit 65b6693

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Unreleased
44
- Add conversions from and to datatypes provided by the [`nalgebra` crate](https://nalgebra.org/). ([#347](https://github.com/PyO3/rust-numpy/pull/347))
55
- Drop our wrapper for NumPy iterators which were deprecated in v0.16.0 as ndarray's iteration facilities are almost always preferable. ([#324](https://github.com/PyO3/rust-numpy/pull/324))
6+
- Dynamic borrow checking now uses a capsule-based API and therefore works across multiple extensions using PyO3 and potentially other bindings or languages. ([#361](https://github.com/PyO3/rust-numpy/pull/361))
67

78
- v0.17.2
89
- Fix unsound aliasing into `Box<[T]>` when converting them into NumPy arrays. ([#351](https://github.com/PyO3/rust-numpy/pull/351))

src/borrow/shared.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ fn insert_shared(py: Python) -> PyResult<*const Shared> {
127127
let capsule: &PyCapsule = match module.getattr("_RUST_NUMPY_BORROW_CHECKING_API") {
128128
Ok(capsule) => capsule.try_into()?,
129129
Err(_err) => {
130-
let flags = Box::into_raw(Box::new(BorrowFlags::default()));
130+
let flags: *mut BorrowFlags = Box::into_raw(Box::default());
131131

132132
let shared = Shared {
133133
version: 1,

0 commit comments

Comments
 (0)