From d6f74be9e75e5e5d088bb870421c1673046769fc Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 2 Jul 2024 10:26:17 +0200 Subject: [PATCH] py: upgrade to PyO3 0.22 --- instant-segment-py/Cargo.toml | 2 +- instant-segment-py/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/instant-segment-py/Cargo.toml b/instant-segment-py/Cargo.toml index 55690ce..899ff93 100644 --- a/instant-segment-py/Cargo.toml +++ b/instant-segment-py/Cargo.toml @@ -18,5 +18,5 @@ crate-type = ["cdylib"] [dependencies] bincode = "1.3.2" instant-segment = { version = "0.11", path = "../instant-segment", features = ["with-serde"] } -pyo3 = { version = "0.21", features = ["extension-module"] } +pyo3 = { version = "0.22", features = ["extension-module"] } smartstring = "1" diff --git a/instant-segment-py/src/lib.rs b/instant-segment-py/src/lib.rs index 7dd6d15..d72a72c 100644 --- a/instant-segment-py/src/lib.rs +++ b/instant-segment-py/src/lib.rs @@ -6,7 +6,7 @@ use std::io::{BufReader, BufWriter}; use pyo3::exceptions::PyValueError; use pyo3::pybacked::PyBackedStr; -use pyo3::types::{PyAnyMethods, PyIterator, PyModule}; +use pyo3::types::{PyAnyMethods, PyIterator, PyModule, PyModuleMethods}; use pyo3::{pyclass, pymethods, pymodule, Bound}; use pyo3::{PyErr, PyRef, PyRefMut, PyResult, Python}; use smartstring::alias::String as SmartString;