diff options
| author | 2024-03-31 11:37:02 -0400 | |
|---|---|---|
| committer | 2024-03-31 11:37:02 -0400 | |
| commit | 1c3cd29e31595bce4f5ce673dfc0b42b2e30785c (patch) | |
| tree | 53d44b1ea4cb590825091d999fd8cf1161d9c4db | |
| parent | Added benchmarks; Unicode version; Removed Ziglyph dep (diff) | |
| download | zg-1c3cd29e31595bce4f5ce673dfc0b42b2e30785c.tar.gz zg-1c3cd29e31595bce4f5ce673dfc0b42b2e30785c.tar.xz zg-1c3cd29e31595bce4f5ce673dfc0b42b2e30785c.zip | |
Updated README with zig fetch
| -rw-r--r-- | README.md | 10 |
1 files changed, 4 insertions, 6 deletions
| @@ -8,17 +8,15 @@ The Unicode version supported by zg is 15.1.0. | |||
| 8 | The minimum Zig version required is 0.12.0-dev.3496+a2df84d0. | 8 | The 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 |
| 11 | You first need to add zg as a dependency in your `build.zig.zon` file: | 11 | You first need to add zg as a dependency in your `build.zig.zon` file. In your |
| 12 | Zig project's root directory, run: | ||
| 12 | 13 | ||
| 13 | ```zig | 14 | ```plain |
| 14 | .zg = .{ | 15 | zig 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 | ||
| 19 | Then instantiate the dependency in your `build.zig`: | 18 | Then instantiate the dependency in your `build.zig`: |
| 20 | 19 | ||
| 21 | |||
| 22 | ```zig | 20 | ```zig |
| 23 | const zg = b.dependency("zg", .{}); | 21 | const zg = b.dependency("zg", .{}); |
| 24 | ``` | 22 | ``` |