File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,31 @@ test "rgb" {
57
57
try testing.expectEqual(@as(u8, 0), d.g);
58
58
try testing.expectEqual(@as(u8, 0), d.b);
59
59
}
60
+ ```
61
+
62
+
63
+ ## Installation
64
+
65
+ Developers tend to either use
66
+ * The latest tagged release of Zig
67
+ * The latest build of Zigs master branch
68
+
69
+ Depending on which developer you are, you need to run different ` zig fetch ` commands:
60
70
71
+ ``` sh
72
+ # Version of mecha that works with a tagged release of Zig
73
+ # Replace `<REPLACE ME>` with the version of mecha that you want to use
74
+ # See: https://github.com/Hejsil/mecha/releases
75
+ zig fetch --save https://github.com/Hejsil/mecha/archive/refs/tags/< REPLACE ME> .tar.gz
76
+
77
+ # Version of mecha that works with latest build of Zigs master branch
78
+ zig fetch --save git+https://github.com/Hejsil/mecha
79
+ ```
80
+
81
+ Then add the following to ` build.zig ` :
82
+
83
+ ``` zig
84
+ const mecha = b.dependency("mecha", .{});
85
+ exe.root_module.addImport("mecha", clap.module("mecha"));
61
86
```
62
87
You can’t perform that action at this time.
0 commit comments