summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jose Colon Rodriguez2024-03-31 11:37:02 -0400
committerGravatar Jose Colon Rodriguez2024-03-31 11:37:02 -0400
commit1c3cd29e31595bce4f5ce673dfc0b42b2e30785c (patch)
tree53d44b1ea4cb590825091d999fd8cf1161d9c4db
parentAdded benchmarks; Unicode version; Removed Ziglyph dep (diff)
downloadzg-1c3cd29e31595bce4f5ce673dfc0b42b2e30785c.tar.gz
zg-1c3cd29e31595bce4f5ce673dfc0b42b2e30785c.tar.xz
zg-1c3cd29e31595bce4f5ce673dfc0b42b2e30785c.zip
Updated README with zig fetch
-rw-r--r--README.md10
1 files 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.
8The minimum Zig version required is 0.12.0-dev.3496+a2df84d0. 8The minimum Zig version required is 0.12.0-dev.3496+a2df84d0.
9 9
10## Integrating zg into your Zig Project 10## Integrating zg into your Zig Project
11You first need to add zg as a dependency in your `build.zig.zon` file: 11You first need to add zg as a dependency in your `build.zig.zon` file. In your
12Zig project's root directory, run:
12 13
13```zig 14```plain
14.zg = .{ 15zig fetch --save https://codeberg.org/dude_the_builder/zg/archive/v0.1.0.tar.gz
15 .url = "https://codeberg.org/dude_the_builder/zg/archive/v0.1.0.tar.gz",
16}
17``` 16```
18 17
19Then instantiate the dependency in your `build.zig`: 18Then instantiate the dependency in your `build.zig`:
20 19
21
22```zig 20```zig
23const zg = b.dependency("zg", .{}); 21const zg = b.dependency("zg", .{});
24``` 22```