https://github.com/jcollie/uuid.zig
RFC 9562 UUID implementation in Zig. Mirror of https://tangled.org/jcollie.dev/uuid.zig
https://github.com/jcollie/uuid.zig
uuid uuidv1 uuidv2 uuidv3 uuidv4 uuidv5 uuidv6 uuidv7 uuidv8 zig
Last synced: 2 days ago
JSON representation
RFC 9562 UUID implementation in Zig. Mirror of https://tangled.org/jcollie.dev/uuid.zig
- Host: GitHub
- URL: https://github.com/jcollie/uuid.zig
- Owner: jcollie
- Created: 2025-08-13T03:27:19.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-05-20T20:05:42.000Z (about 1 month ago)
- Last Synced: 2026-05-20T21:49:41.782Z (about 1 month ago)
- Topics: uuid, uuidv1, uuidv2, uuidv3, uuidv4, uuidv5, uuidv6, uuidv7, uuidv8, zig
- Language: Zig
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/CC0-1.0.txt
Awesome Lists containing this project
README
# RFC 9562 UUIDs for Zig
## Example
```
const std = @import("std");
const UUID = @import("uuid").UUID;
pub fn main(init: std.process.Init) void {
const rng_impl: std.Random.IoSource = .{ .io = init.io };
const rng = rng_impl.interface();
const uuid: UUID = .new(.{
.v4 = .{
.rng = rng,
},
});
std.debug.print("{s}\n", .{uuid.serialize()});
}
```