From 1c3cd29e31595bce4f5ce673dfc0b42b2e30785c Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Sun, 31 Mar 2024 11:37:02 -0400 Subject: Updated README with zig fetch --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4481a6d..4df0112 100644 --- a/README.md +++ b/README.md @@ -8,17 +8,15 @@ The Unicode version supported by zg is 15.1.0. The minimum Zig version required is 0.12.0-dev.3496+a2df84d0. ## Integrating zg into your Zig Project -You first need to add zg as a dependency in your `build.zig.zon` file: +You first need to add zg as a dependency in your `build.zig.zon` file. In your +Zig project's root directory, run: -```zig -.zg = .{ - .url = "https://codeberg.org/dude_the_builder/zg/archive/v0.1.0.tar.gz", -} +```plain +zig fetch --save https://codeberg.org/dude_the_builder/zg/archive/v0.1.0.tar.gz ``` Then instantiate the dependency in your `build.zig`: - ```zig const zg = b.dependency("zg", .{}); ``` -- cgit v1.2.3