An open API service indexing awesome lists of open source software.

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

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()});
}
```