Skip to content

Commit 97a1d53

Browse files
committed
pyo3 to 0.17
1 parent dad7131 commit 97a1d53

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = "https://github.com/davesque/blake2b-py"
88
description = "Blake2b hashing in Rust with Python bindings."
99

1010
[dependencies]
11-
pyo3 = { version = "~0.20", features = ["extension-module"] }
11+
pyo3 = { version = "~0.17", features = ["extension-module"] }
1212

1313
[dev-dependencies]
1414
hex = "~0.4"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ fn decode_and_compress(py: Python, input: Vec<u8>) -> PyResult<PyObject> {
159159
}
160160

161161
/// Functions for calculating blake2b hashes.
162+
#[pymodule]
162163
fn blake2b(_py: Python, m: &PyModule) -> PyResult<()> {
163164
m.add_wrapped(wrap_pyfunction!(decode_parameters))?;
164165
m.add_wrapped(wrap_pyfunction!(compress))?;

0 commit comments

Comments
 (0)