4 releases

0.1.3 Dec 15, 2023
0.1.2 Oct 30, 2023
0.1.1 Mar 17, 2022
0.1.0 Mar 17, 2022

#8 in #uid

Download history 11/week @ 2024-09-19 9/week @ 2024-09-26 2/week @ 2024-10-03

65 downloads per month

MIT license

8KB
152 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

~51–455KB