Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Zig implementation of all seven UUID versions.
https://github.com/tensorush/zig-uuid

uuid uuid1 uuid2 uuid3 uuid4 uuid5 uuid6 uuid7 uuids uuidv1 uuidv2 uuidv3 uuidv4 uuidv5 uuidv6 uuidv7 zig zig-library zig-package ziglang

Last synced: about 2 months ago
JSON representation

Zig implementation of all seven UUID versions.

Awesome Lists containing this project

README

        

# zig-uuid

[![CI][ci-shd]][ci-url]
[![CD][cd-shd]][cd-url]
[![DC][dc-shd]][dc-url]
[![LC][lc-shd]][lc-url]

## Zig implementation of [all seven UUID versions](https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html).

### :rocket: Usage

- Add `uuid` dependency to `build.zig.zon`.

```sh
zig fetch --save https://github.com/tensorush/zig-uuid/archive/.tar.gz
```

- Use `uuid` dependency in `build.zig`.

```zig
const uuid_dep = b.dependency("uuid", .{
.target = target,
.optimize = optimize,
});
const uuid_mod = uuid_dep.module("Uuid");
.root_module.addImport("Uuid", uuid_mod);
```

[ci-shd]: https://img.shields.io/github/actions/workflow/status/tensorush/zig-uuid/ci.yaml?branch=main&style=for-the-badge&logo=github&label=CI&labelColor=black
[ci-url]: https://github.com/tensorush/zig-uuid/blob/main/.github/workflows/ci.yaml
[cd-shd]: https://img.shields.io/github/actions/workflow/status/tensorush/zig-uuid/cd.yaml?branch=main&style=for-the-badge&logo=github&label=CD&labelColor=black
[cd-url]: https://github.com/tensorush/zig-uuid/blob/main/.github/workflows/cd.yaml
[dc-shd]: https://img.shields.io/badge/click-F6A516?style=for-the-badge&logo=zig&logoColor=F6A516&label=doc&labelColor=black
[dc-url]: https://tensorush.github.io/zig-uuid
[lc-shd]: https://img.shields.io/github/license/tensorush/zig-uuid.svg?style=for-the-badge&labelColor=black
[lc-url]: https://github.com/tensorush/zig-uuid/blob/main/LICENSE