Skip to content

upgrade to pyo3 0.28#97

Open
Johann150 wants to merge 8 commits intoArniDagur:masterfrom
Johann150:master
Open

upgrade to pyo3 0.28#97
Johann150 wants to merge 8 commits intoArniDagur:masterfrom
Johann150:master

Conversation

@Johann150
Copy link
Copy Markdown

Upgrades the pyo3 rust crate to the current version going by the pyo3 migration guide. See the individual commit messages for further details.

- no relevant changes 0.16 -> 0.17
- two relevant changes in 0.17 -> 0.18
  https://pyo3.rs/main/migration.html#from-017-to-018
  - text signature is automatically generated
  - required arguments after Option<_> no longer inferred
- no relevant changes in 0.18 -> 0.19
- two relevant change in 0.19 -> 0.20
https://pyo3.rs/main/migration.html#from-019-to-020
  - minimum Rust version raised to 1.56
  - removed #[args] in favour of #[pyo3(signature=...)]
Convert to using the pyo3::Bound smart pointer instead of refs.

In the case of the use_tags, enable_tags and disable_tags functions,
it would alternatively be possible to use Vec<PyBackedStr> but this
seems to me to be even more complicated.
Implicit default for trailing optional arguments deprecated.
gil-refs feature removed and _bound functions have now become the "normal"
versions of the respective functions.
no relevant changes in 0.23 -> 0.27
one relevant change in 0.27 -> 0.28
- deprecation of automatic FromPyObject for #[pyclass]
  - because of the use in Engine::new, the FromPyObject is needed for
    FilterSet, so it is explicity enabled.
@Johann150
Copy link
Copy Markdown
Author

closes #89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant