🦎 ℹ️ zig typeid
TypeID, a type-safe extension of UUIDv7, created by the jetpack.io team.
Zig implementation of🚀 Usage
-
Add
typeid
as a dependency in yourbuild.zig.zon
.build.zig.zon
example.{ .name = "<name_of_your_package>", .version = "<version_of_your_package>", .dependencies = .{ .typeid = .{ .url = "https://github.com/tensorush/zig-typeid/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
typeid
as a module in yourbuild.zig
.build.zig
exampleconst typeid = b.dependency("typeid", .{}); exe.addModule("typeid", typeid.module("typeid"));