Skip to content

tensorush/zig-uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

57 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🦎 πŸ†” zig uuid

CI CD Docs Codecov License

Zig implementation of all seven UUID versions.

πŸš€ Usage

  1. Add uuid as a dependency in your build.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> to 12200000000000000000000000000000000000000000000000000000000000000000, and Zig will provide the correct found value in an error message.

  2. Add uuid as a module in your build.zig.

    build.zig example
    const uuid = b.dependency("uuid", .{});
    exe.addModule("Uuid", uuid.module("Uuid"));