Skip to content

Commit 87db87e

Browse files
authored
Version 0.11.0 (aminalaee#75)
1 parent 9caf905 commit 87db87e

File tree

6 files changed

+63
-56
lines changed

6 files changed

+63
-56
lines changed

Cargo.lock

Lines changed: 55 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "uuid-utils"
3-
version = "0.10.0"
3+
version = "0.11.0"
44
edition = "2021"
55

66
[lib]
77
name = "uuid_utils"
88
crate-type = ["cdylib"]
99

1010
[dependencies]
11-
mac_address = "1.1.7"
12-
pyo3 = { version = "0.23.1", features = ["extension-module", "generate-import-lib", 'abi3-py39'] }
13-
rand = "0.8.5"
14-
uuid = { version = "1.11.0", features = ["v1", "v3", "v4", "v5", "v6", "v7", "v8", "fast-rng"]}
11+
mac_address = "1.1.8"
12+
pyo3 = { version = "0.25.0", features = ["extension-module", "generate-import-lib", 'abi3-py39'] }
13+
rand = "0.9.1"
14+
uuid = { version = "1.16.0", features = ["v1", "v3", "v4", "v5", "v6", "v7", "v8", "fast-rng"]}

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
Python UUID implementation using Rust's UUID library.
1515
This will make `uuid4` function around 10x faster.
1616

17-
This package can be a drop-in replacement to the standard library UUID
18-
which implements existing UUID versions like v4 in Rust
19-
and also adds draft UUID versions like v6.
17+
This package can be a drop-in replacement to the standard library UUID.
2018

2119
Avaialble UUID versions:
2220

@@ -28,8 +26,6 @@ Avaialble UUID versions:
2826
- `uuid7` - Version 7 UUIDs using a Unix timestamp ordered by time.
2927
- `uuid8` - Version 8 UUIDs using user-defined data.
3028

31-
<sup>Please note that UUID versions 6, 7 and 8 are still in draft RFC.</sup><br>
32-
3329
## Installation
3430
Using `pip`:
3531
```shell

docs/index.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
Python UUID implementation using Rust's UUID library.
1515
This will make `uuid4` function around 10x faster.
1616

17-
This package can be a drop-in replacement to the standard library UUID
18-
which implements existing UUID versions like v4 in Rust
19-
and also adds draft UUID versions like v6.
20-
2117
Avaialble UUID versions:
2218

2319
- `uuid1` - Version 1 UUIDs using a timestamp and monotonic counter.
@@ -28,8 +24,6 @@ Avaialble UUID versions:
2824
- `uuid7` - Version 7 UUIDs using a Unix timestamp ordered by time.
2925
- `uuid8` - Version 8 UUIDs using user-defined data.
3026

31-
<sup>Please note that UUID versions 6, 7 and 8 are still in draft RFC.</sup><br>
32-
3327
## Installation
3428
Using `pip`:
3529
```shell

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "uuid_utils"
7-
description = "Drop-in replacement for Python UUID in Rust"
7+
description = "Drop-in replacement for Python UUID with bindings in Rust"
88
authors = [{ name = "Amin Alaee", email = "me@aminalaee.dev" }]
99
keywords = ["rust", "uuid"]
1010
requires-python = ">=3.9"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ fn _getnode() -> u64 {
421421
Ok(Some(mac_address)) => mac_address.bytes(),
422422
_ => {
423423
let mut bytes = [0u8; 6];
424-
rand::thread_rng().fill_bytes(&mut bytes);
424+
rand::rng().fill_bytes(&mut bytes);
425425
bytes[0] = bytes[0] | 0x01;
426426
bytes
427427
}

0 commit comments

Comments
 (0)