7 releases

0.1.6 Jan 29, 2025
0.1.5 Jan 19, 2025
0.1.4 Dec 9, 2024
0.1.3 Dec 15, 2023
0.1.1 Mar 17, 2022

#5 in #uid

Download history 75/week @ 2024-12-03 89/week @ 2024-12-10 1/week @ 2025-01-07 89/week @ 2025-01-14 20/week @ 2025-01-21 125/week @ 2025-01-28 20/week @ 2025-02-04

254 downloads per month

MIT license

8KB
150 lines

UUIDv6 for Rust

A simple UUIDv6 crate.

let node = uuidv6::Node::new();

let mut st = node.uuidv6().into_iter();

let uid_1 = st.next();
let uid_2 = st.next();
let uid_3 = st.next();

This returns standard UUIDv6 strings.

As an alternative, a 16-byte binary representation of these UUIDs can be produced:

let node = uuidv6::Node::new();

let mut st = node.uuidv6_raw().into_iter();

let uid_1 = st.next();
let uid_2 = st.next();
let uid_3 = st.next();

Dependencies

~0.1–5MB
~10K SLoC