diff options
| -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 | ``` |