twilkinson3421/zutil
A simple collection of utilities for working with the Zig programming language
A simple collection of utilities for working with the Zig programming language. Contains documentation in the source code.
For Zig compiler version 0.13.0
.
Updated for ZUtil 1.0.0
.
Feature | Description |
---|---|
andCopy |
Copies a value to a destination and returns the value. |
ToInt |
Converts a float type to a signed integer type of the same size. |
To get started, first fetch the library; replace the <commit-hash>
with the commit hash for the version you wish to use:
zig fetch --save github.com/twilkinson3421/zutil/archive/<commit-hash>.tar.gz
Then, add the library to your build.zig
file:
const zutil = b.dependency("zutil", .{});
exe.root_module.addImport("zutil", zutil.module("zutil"));
Contributions are welcome! Please open an issue or pull request if you have any suggestions or improvements. Feel free to suggest whatever you want, fork the project, or include it in your own project.
This project is licensed under the Unlicense.