From e95cd1b87f21d6c23fd6dad7c638aaefea2f978b Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Thu, 23 Oct 2025 22:27:49 -0500 Subject: Added install instructions to README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 7452cec..fb63ab7 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,12 @@ To add the latest version to your project, simply run ``` $ zig fetch --save git+https://git.ngaffney.dev/funcz/#HEAD ``` + +And then in your `build.zig`, add the following: +```zig +const funczmod = b.dependency("funcz", .{ + .target = target, + .optimize = optimize, +}).module("funcz"); +exe.root_module.addImport("funcz", funczmod); +``` -- cgit v1.2.3