Zig implementation of all seven UUID versions.
-
Add
uuid
as a dependency in yourbuild.zig.zon
.build.zig.zon
example.{ .name = "<name_of_your_package>", .version = "<version_of_your_package>", .dependencies = .{ .uuid = .{ .url = "https://github.com/tensorush/zig-uuid/archive/<git_tag_or_commit_hash>.tar.gz", .hash = "<package_hash>", }, }, }
Set
<package_hash>
to12200000000000000000000000000000000000000000000000000000000000000000
, and Zig will provide the correct found value in an error message. -
Add
uuid
as a module in yourbuild.zig
.build.zig
exampleconst uuid = b.dependency("uuid", .{}); exe.addModule("Uuid", uuid.module("Uuid"));