Skip to content

Commit b8b3a5a

Browse files
committed
Zig 0.14.0
1 parent 9e62495 commit b8b3a5a

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
os: [ubuntu-latest]
1919
build-options: ["-Dssl=None -Ddisable-zlib -Ddisable-zstd", "-Dssl=OpenSSL", "-Dssl=LibreSSL"]
2020
include:
21-
- zig-version: "0.13.0"
21+
- zig-version: "0.14.0"
2222
os: ubuntu-latest
2323
build-options: "-Dssl=None -Ddisable-zlib -Ddisable-zstd"
2424
#- zig-version: "master"

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ Provides a package to be used by the zig package manager for C programs.
99
| x86_64 |||
1010
| arm 64 | (untested) ||
1111

12-
| Refname | PostgreSQL version | Zig `0.12.x` | Zig `0.13.x` | Zig `0.14.0-dev` |
13-
|------------|--------------------|--------------|--------------|------------------|
14-
| `5.16.4+2` | `REL_16_4` ||||
12+
| Refname | PostgreSQL version | Zig `0.15.x` | Zig `0.14.x` | Zig `0.13.x` |
13+
|------------|--------------------|--------------|--------------|--------------|
14+
| `5.16.4+3` | `REL_16_4` ||||
15+
| `5.16.4+2` | `REL_16_4` ||||
1516

1617
## Use
1718

1819
Add the dependency in your `build.zig.zon` by running the following command:
1920
```zig
20-
zig fetch --save git+https://github.com/allyourcodebase/libpq#5.16.4+1
21+
zig fetch --save git+https://github.com/allyourcodebase/libpq#5.16.4+3
2122
```
2223

2324
Then, in your `build.zig`:
@@ -47,8 +48,8 @@ To update this project dependencies:
4748

4849
```bash
4950
zig fetch --save=upstream git+https://github.com/postgres/postgres#REL_16_4
50-
zig fetch --save git+https://github.com/allyourcodebase/openssl#3.3.0
51-
zig fetch --save git+https://github.com/allyourcodebase/libressl#4.0.0+1
52-
zig fetch --save git+https://github.com/allyourcodebase/zlib#1.3.1
53-
zig fetch --save git+https://github.com/allyourcodebase/zstd#1.5.6-2
51+
zig fetch --save git+https://github.com/allyourcodebase/openssl#main
52+
zig fetch --save git+https://github.com/allyourcodebase/libressl#4.0.0+2
53+
zig fetch --save git+https://github.com/allyourcodebase/zlib#main
54+
zig fetch --save git+https://github.com/allyourcodebase/zstd#1.5.7
5455
```

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ pub fn build(b: *std.Build) !void {
186186
.HAVE_X86_64_POPCNTQ = is_amd64,
187187
});
188188

189-
const is_gnu: ?u8 = if (target.result.isGnu()) 1 else null;
189+
const is_gnu: ?u8 = if (target.result.isGnuLibC()) 1 else null;
190190
const not_gnu: ?u8 = if (is_gnu == null) 1 else null;
191191
// While building with musl, defining _GNU_SOURCE makes musl declare extra things (e.g. struct ucred)
192192
lib.root_module.addCMacro("_GNU_SOURCE", "1");

build.zig.zon

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
.{
2-
.name = "libpq",
2+
.name = .libpq,
33
.version = "5.16.4",
4+
.fingerprint = 0x9fa0f2ca693ac140,
5+
.minimum_zig_version = "0.14.0",
46
.dependencies = .{
57
.upstream = .{
68
.url = "git+https://github.com/postgres/postgres?ref=REL_16_4#2caa85f4aae689e6f6721d7363b4c66a2a6417d6",
7-
.hash = "12208ab2a51009911223b33e470daffb5214d5b4c7479492fa9c7a4a6d7163b16d53",
9+
.hash = "N-V-__8AAKeztweKsqUQCZESI7M-Rw2v-1IU1bTHR5SS-px6",
810
},
911
.openssl = .{
10-
.url = "git+https://github.com/allyourcodebase/openssl?ref=3.3.0#37f44e18975205c8111fec16b896c2f937667465",
11-
.hash = "12200078346510dd1010ac11cf1d46b0e51cda1b3c80f3b2fb375194f52f70cbf0a0",
12+
.url = "git+https://github.com/allyourcodebase/openssl?ref=main#f348124c5382bcc377f1b3277357cbf2ed2fb8db",
13+
.hash = "openssl-3.3.1-2-TC9C3Se3ZACF5WO_CjoD7Bt_X94oCsAAbbwhOp1rTZBe",
1214
.lazy = true,
1315
},
1416
.libressl = .{
15-
.url = "git+https://github.com/allyourcodebase/libressl?ref=4.0.0+1#fd0fe777153a75217e97ba22cd8b32005bb90d08",
16-
.hash = "1220c6521dd6d37f0426fbe6c3b3c3f4282f28495311abc08fb4cebf21ea2346ba2f",
17+
.url = "git+https://github.com/allyourcodebase/libressl?ref=4.0.0+2#18d16b266328f3e568ab4ee614ae8c054b682c9e",
18+
.hash = "libressl-4.0.0--kqV4LnSAACWhbUEm8O5KHGuJpNJsN0xLIlbFun7ql-m",
1719
.lazy = true,
1820
},
1921
.zlib = .{
20-
.url = "git+https://github.com/allyourcodebase/zlib?ref=1.3.1#0918e87b7629b9c6a50a08edd0ce30d849758faf",
21-
.hash = "122034ab2a12adf8016ffa76e48b4be3245ffd305193edba4d83058adbcfa749c107",
22+
.url = "git+https://github.com/allyourcodebase/zlib?ref=main#6c72830882690c1eb2567a537525c3f432c1da50",
23+
.hash = "zlib-1.3.1-ZZQ7lVgMAACwO4nUUd8GLhsuQ5JQq_VAhlEiENJTUv6h",
2224
.lazy = true,
2325
},
2426
.zstd = .{
25-
.url = "git+https://github.com/allyourcodebase/zstd?ref=1.5.6-2#ea25e89037dc251a3ba50a5005e2c8566eb3c2bd",
26-
.hash = "122040924472b1c510a7058596d43fb9461dcc20406f681eb9c2f6443375d2f571c4",
27+
.url = "git+https://github.com/allyourcodebase/zstd?ref=1.5.7#01327d49cbc56dc24c20a167bb0055d7fc23de84",
28+
.hash = "zstd-1.5.7-KEItkJ8vAAC5_rRlKmLflYQ-eKXbAIQBWZNmmJtS18q0",
2729
.lazy = true,
2830
},
2931
},

0 commit comments

Comments
 (0)