Releases: AndrejOrsula/pyo3_bindgen
Releases · AndrejOrsula/pyo3_bindgen
0.5.0
What's Changed
- Bumped
pyo3
to 0.21, which includes a large transition to usingpyo3::Bound
smart pointers (both internal and generated code). More information about breaking changes introduced by this change is mentioned below. - Function
pyo3_embed_python_source_code()
is now automatically generated when usingCodegen::module_from_str()
to simplify embedding of Python source code during runtime. - Removed
macros
from the default features - Added
numpy
feature for automatic mapping of numpy::ndarray
Significant API changes for the generated bindings due to pyo3
update to 0.21
- Calling methods of class
MyClass(pyo3::PyAny)
encapsulated aspyo3::Bound<'_, MyClass>
is now a bit more cumbersome. It requires thatuse MyClassMethods;
is included in the scope when such methods are used. This follows the API design of PyO3, where all methods are implemented under a trait (e.g.pyo3::types::PyAnyMethods
) due toarbitrary_self_types
being unstable. - Passing of
::pyo3::marker::Python<'py>
is no longer necessary for methods. It is extracted fromself
directly.
Full Changelog: 0.4.0...0.5.0
0.4.0
0.3.1
0.3.0
What's Changed
- Bump itertools from 0.12.0 to 0.12.1 by @dependabot in #5
- Bump codecov/codecov-action from 3 to 4 by @dependabot in #6
- Bump pre-commit/action from 3.0.0 to 3.0.1 by @dependabot in #9
- Bump pre-commit-ci/lite-action from 1.0.1 to 1.0.2 by @dependabot in #8
- Bump clap from 4.4.18 to 4.5.0 by @dependabot in #7
- Bump syn from 2.0.48 to 2.0.49 by @dependabot in #10
- Bump clap from 4.5.0 to 4.5.1 by @dependabot in #11
- Development towards 0.3.0 by @AndrejOrsula in #4
Full Changelog: 0.2.0...0.3.0
0.2.0
What's Changed
- Bump proc-macro2 from 1.0.76 to 1.0.78 by @dependabot in #3
- Development towards 0.2.0 by @AndrejOrsula in #2
Full Changelog: 0.1.1...0.2.0