@@ -7,13 +7,17 @@ Provides a package to be used by the zig package manager for C programs.
77| Architecture \ OS | Linux | MacOS |
88| :------------------| :-----------| -------|
99| x86_64 | ✅ | ✅ |
10- | arm 64 | (untested) | ✅ |
10+ | arm 64 | (untested) | ✅* |
1111
12- | Refname | PostgreSQL version | Zig ` 0.15.x ` | Zig ` 0.14.x ` | Zig ` 0.13.x ` |
13- | ------------| --------------------| --------------| --------------| --------------|
14- | ` 5.16.4+4 ` | ` REL_16_4 ` | ✅ | ✅ | ❌ |
15- | ` 5.16.4+3 ` | ` REL_16_4 ` | ❌ | ✅ | ❌ |
16- | ` 5.16.4+2 ` | ` REL_16_4 ` | ❌ | ❌ | ✅ |
12+ | Refname | PostgreSQL version | Zig ` 0.16.x ` | Zig ` 0.15.x ` | Zig ` 0.14.x ` | Zig ` 0.13.x ` |
13+ | ------------| --------------------| --------------| --------------| --------------| --------------|
14+ | ` 5.16.4+5 ` | ` REL_16_4 ` | ✅ | ✅ | ✅ | ❌ |
15+ | ` 5.16.4+4 ` | ` REL_16_4 ` | ✅* | ✅ | ✅ | ❌ |
16+ | ` 5.16.4+4 ` | ` REL_16_4 ` | ✅* | ✅ | ✅ | ❌ |
17+ | ` 5.16.4+3 ` | ` REL_16_4 ` | ❌ | ❌ | ✅ | ❌ |
18+ | ` 5.16.4+2 ` | ` REL_16_4 ` | ❌ | ❌ | ❌ | ✅ |
19+
20+ * : Will not work with OpenSSL
1721
1822## Use
1923
@@ -25,10 +29,12 @@ zig fetch --save git+https://github.com/allyourcodebase/libpq#master
2529Then, in your ` build.zig ` :
2630``` zig
2731const postgres = b.dependency("libpq", { .target = target, .optimize = optimize });
28- const libpq = postgres.artifact("pq");
2932
30- // wherever needed:
31- exe.linkLibrary(libpq);
33+ // to use from Zig (since 5.16.4+5):
34+ mod.addImport("libpq", postgres.module("libpq"));
35+
36+ // to use from C:
37+ exe.linkLibrary(postgres.artifact("pq"));
3238```
3339
3440## Options
0 commit comments