Skip to content

Commit

Permalink
build(deps): bump pyo3 from 0.21.2 to 0.22.0 in the cargo group (#69)
Browse files Browse the repository at this point in the history
* build(deps): bump pyo3 from 0.21.2 to 0.22.0 in the cargo group

Bumps the cargo group with 1 update: [pyo3](https://github.com/pyo3/pyo3).


Updates `pyo3` from 0.21.2 to 0.22.0
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md)
- [Commits](PyO3/pyo3@v0.21.2...v0.22.0)

---
updated-dependencies:
- dependency-name: pyo3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <[email protected]>

* pyo3 API changes

Signed-off-by: William Woodruff <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: William Woodruff <[email protected]>
  • Loading branch information
dependabot[bot] and woodruffw authored Jul 1, 2024
1 parent c2ab458 commit 78c10ca
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 35 deletions.
64 changes: 32 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ crate-type = ["cdylib"]
[dependencies]
age-core = "0.10"
age = { version = "0.10", features = ["ssh", "plugin"] }
pyo3 = { version = "0.21", features = [
pyo3 = { version = "0.22", features = [
"extension-module",
"abi3",
"abi3-py38",
"py-clone",
] }
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ identity_traits!(ssh::Identity, x25519::Identity, plugin::IdentityPluginV1);
// `PyAny` into each concrete recipient type, which we then perform the trait
// cast on.
impl<'source> FromPyObject<'source> for Box<dyn PyrageRecipient> {
fn extract(ob: &'source PyAny) -> PyResult<Self> {
fn extract_bound(ob: &Bound<'source, PyAny>) -> PyResult<Self> {
if let Ok(recipient) = ob.extract::<x25519::Recipient>() {
Ok(Box::new(recipient) as Box<dyn PyrageRecipient>)
} else if let Ok(recipient) = ob.extract::<ssh::Recipient>() {
Expand All @@ -118,7 +118,7 @@ impl<'source> FromPyObject<'source> for Box<dyn PyrageRecipient> {
// Similar to the above: we try to turn the `PyAny` into a concrete identity type,
// which we then perform the trait cast on.
impl<'source> FromPyObject<'source> for Box<dyn PyrageIdentity> {
fn extract(ob: &'source PyAny) -> PyResult<Self> {
fn extract_bound(ob: &Bound<'source, PyAny>) -> PyResult<Self> {
if let Ok(identity) = ob.extract::<x25519::Identity>() {
Ok(Box::new(identity) as Box<dyn PyrageIdentity>)
} else if let Ok(identity) = ob.extract::<ssh::Identity>() {
Expand Down

0 comments on commit 78c10ca

Please sign in to comment.