Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/tensorush/zig-uuid
- Owner: tensorush
- License: mit
- Created: 2023-07-01T18:38:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-01T09:58:13.000Z (5 months ago)
- Last Synced: 2024-08-02T09:32:28.689Z (5 months ago)
- Topics: uuid, uuid1, uuid2, uuid3, uuid4, uuid5, uuid6, uuid7, uuids, uuidv1, uuidv2, uuidv3, uuidv4, uuidv5, uuidv6, uuidv7, zig, zig-library, zig-package, ziglang
- Language: Zig
- Homepage: https://tensorush.github.io/zig-uuid/
- Size: 1.66 MB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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