Skip to content

Commit

Permalink
Bump to pyo3 0.20 (#9714)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Oct 11, 2023
1 parent dd9dd3e commit 40dfa18
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 32 deletions.
54 changes: 25 additions & 29 deletions src/rust/Cargo.lock

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

2 changes: 1 addition & 1 deletion src/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rust-version = "1.63.0"
[dependencies]
once_cell = "1"
cfg-if = "1"
pyo3 = { version = "0.19", features = ["abi3-py37"] }
pyo3 = { version = "0.20", features = ["abi3-py37"] }
asn1 = { version = "0.15.5", default-features = false }
cryptography-cffi = { path = "cryptography-cffi" }
cryptography-x509 = { path = "cryptography-x509" }
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-cffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish = false
rust-version = "1.63.0"

[dependencies]
pyo3 = { version = "0.19", features = ["abi3-py37"] }
pyo3 = { version = "0.20", features = ["abi3-py37"] }
openssl-sys = "0.9.93"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/rust/src/backend/ec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn py_curve_from_curve<'p>(
Ok(types::CURVE_TYPES
.get(py)?
.extract::<&pyo3::types::PyDict>()?
.get_item(name)
.get_item(name)?
.ok_or_else(|| {
CryptographyError::from(exceptions::UnsupportedAlgorithm::new_err((
format!("{} is not a supported elliptic curve", name),
Expand Down

0 comments on commit 40dfa18

Please sign in to comment.