From the README:
An RFC 9562 compliant UUID implementation for Zig.
About
- Version support: Implements all UUID versions including the latest v6, v7, and v8
- Type safety: Use the
Uuid
union to accept any version, orUuid.V7
to only accept V7 UUIDs - Thread safety: Generate time-based UUIDs from multiple threads without coordination or duplicate values
- Packed structs: All UUID types can cast directly to integers and work with raw bytes without overhead
- Compliant: Generates UUIDs with correct bit layouts, version/variant fields, and timestamp formats
- Non-compliant: Represent UUIDs that don’t follow RFC 9562 for interoperability
- Flexible clocks: Configurable clock sources for time-based UUIDs with atomic and local implementations
- Zero dependencies: Uses only Zig’s standard library
The design is heavily influenced by the Rust uuid crate, with some Zig specific flavoring.
You must log in or register to comment.