File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ Provides a package to be used by the zig package manager for C programs.
6
6
7
7
For now the hard-coded config assumes linux.
8
8
9
+ | Refname | json-c version | Zig ` 0.12.x ` | Zig ` 0.13.x ` | Zig ` 0.14.0-dev ` |
10
+ | ---------| ------------------------| --------------| --------------| ------------------|
11
+ | ` 0.17 ` | ` json-c-0.17-20230812 ` | ✅ | ✅ | ✅ |
12
+ | ` 0.18 ` | ` json-c-0.18-20240915 ` | ✅ | ✅ | ✅ |
13
+
14
+
9
15
## Use
10
16
11
17
Add the dependency in your ` build.zig.zon ` by running the following command:
12
18
``` bash
13
- zig fetch --save git+https://github.com/allyourcodebase/json-c#0.17
19
+ zig fetch --save git+https://github.com/allyourcodebase/json-c#0.18
14
20
```
15
21
16
22
Then, in your ` build.zig ` :
Original file line number Diff line number Diff line change 1
1
const std = @import ("std" );
2
2
3
- const version = .{ .major = 0 , .minor = 17 };
3
+ const version = .{ .major = 0 , .minor = 18 };
4
4
5
5
pub fn build (b : * std.Build ) ! void {
6
6
const target = b .standardTargetOptions (.{});
Original file line number Diff line number Diff line change 1
1
.{
2
2
.name = "json-c" ,
3
- .version = "0.17 .0" ,
3
+ .version = "0.18 .0" ,
4
4
.minimum_zig_version = "0.12.0" ,
5
5
.dependencies = .{
6
6
.upstream = .{
7
- .url = "git+https://github.com/json-c/json-c?ref=json-c-0.17-20230812#b4c371fa0cbc4dcbaccc359ce9e957a22988fb34 " ,
8
- .hash = "1220aa451031c0f1e2deedd83bb86eb1d5394bfe83c2ab9ce1a85a1bf0ed4d632586 " ,
7
+ .url = "git+https://github.com/json-c/json-c?ref=json-c-0.18-20240915#41a55cfcedb54d9c1874f2f0eb07b504091d7e37 " ,
8
+ .hash = "12208b714ab345c47972d351d67d6dc000d752256fa2f121665842df31d0fb4ac13f " ,
9
9
},
10
10
},
11
11
.paths = .{
You can’t perform that action at this time.
0 commit comments