tensorush / zig-uuid

πŸ†” Zig implementation of all seven UUID versions.

Home Page:https://tensorush.github.io/zig-uuid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🦎 πŸ†” 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"));

About

πŸ†” Zig implementation of all seven UUID versions.

https://tensorush.github.io/zig-uuid/

License:MIT License


Languages

Language:Zig 100.0%