Skip to content

Commit

Permalink
Upgrade dependencies (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored Jun 28, 2024
1 parent 43ca15c commit 21b455c
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [aarch64, armv7, s390x, ppc64le]
target: [aarch64, armv7, ppc64le]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
184 changes: 38 additions & 146 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "uuid_utils"
crate-type = ["cdylib"]

[dependencies]
mac_address = "1.1.6"
pyo3 = { version = "0.21.2", features = ["extension-module", "generate-import-lib"] }
mac_address = "1.1.7"
pyo3 = { version = "0.22.0", features = ["extension-module", "generate-import-lib"] }
rand = "0.8.5"
uuid = { version = "1.8.0", features = ["v1", "v3", "v4", "v5", "v6", "v7", "v8", "fast-rng"]}
uuid = { version = "1.9.1", features = ["v1", "v3", "v4", "v5", "v6", "v7", "v8", "fast-rng"]}
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ impl UUID {
};

#[new]
#[pyo3(signature = (hex=None, bytes=None, bytes_le=None, fields=None, int=None, version=None))]
fn new(
hex: Option<&str>,
bytes: Option<&Bound<'_, PyBytes>>,
Expand Down Expand Up @@ -308,6 +309,7 @@ impl UUID {
}

#[pyfunction]
#[pyo3(signature = (node=None, clock_seq=None))]
fn uuid1(node: Option<u64>, clock_seq: Option<u64>) -> PyResult<UUID> {
let node = match node {
Some(node) => node.to_ne_bytes(),
Expand Down Expand Up @@ -356,6 +358,7 @@ fn uuid5(namespace: &UUID, name: StringOrBytes) -> PyResult<UUID> {
}

#[pyfunction]
#[pyo3(signature = (node=None, timestamp=None, nanos=None))]
fn uuid6(node: Option<u64>, timestamp: Option<u64>, nanos: Option<u32>) -> PyResult<UUID> {
let node = match node {
Some(node) => node.to_ne_bytes(),
Expand All @@ -377,6 +380,7 @@ fn uuid6(node: Option<u64>, timestamp: Option<u64>, nanos: Option<u32>) -> PyRes
}

#[pyfunction]
#[pyo3(signature = (timestamp=None, nanos=None))]
fn uuid7(timestamp: Option<u64>, nanos: Option<u32>) -> PyResult<UUID> {
let uuid = match timestamp {
Some(timestamp) => {
Expand Down

0 comments on commit 21b455c

Please sign in to comment.