Skip to content

Commit

Permalink
Version 0.10.0 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored Nov 21, 2024
1 parent f72cb24 commit 9ddd132
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ crate-type = ["cdylib"]

[dependencies]
mac_address = "1.1.7"
pyo3 = { version = "0.22.5", features = ["extension-module", "generate-import-lib", 'abi3-py39'] }
pyo3 = { version = "0.23.1", features = ["extension-module", "generate-import-lib", 'abi3-py39'] }
rand = "0.8.5"
uuid = { version = "1.11.0", features = ["v1", "v3", "v4", "v5", "v6", "v7", "v8", "fast-rng"]}
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl UUID {
}

pub fn __deepcopy__(&self, py: Python, _memo: &Bound<'_, PyDict>) -> Py<PyAny> {
self.clone().into_py(py)
self.clone().into_pyobject(py).unwrap().into_any().unbind()
}

#[getter]
Expand All @@ -158,7 +158,7 @@ impl UUID {
bytes[3], bytes[2], bytes[1], bytes[0], bytes[5], bytes[4], bytes[7], bytes[6],
bytes[8], bytes[9], bytes[10], bytes[11], bytes[12], bytes[13], bytes[14], bytes[15],
];
PyBytes::new_bound(py, &bytes)
PyBytes::new(py, &bytes)
}

#[getter]
Expand Down Expand Up @@ -449,7 +449,7 @@ fn getnode() -> PyResult<u64> {
#[pymodule]
fn _uuid_utils(m: &Bound<'_, PyModule>) -> PyResult<()> {
let safe_uuid_unknown = Python::with_gil(|py| {
return PyModule::import_bound(py, "uuid")
return PyModule::import(py, "uuid")
.unwrap()
.getattr("SafeUUID")
.unwrap()
Expand Down

0 comments on commit 9ddd132

Please sign in to comment.